Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Events sent via socket contain two events in the simulation #34

Open
kabirkbr opened this issue Jun 26, 2018 · 0 comments
Open

Events sent via socket contain two events in the simulation #34

kabirkbr opened this issue Jun 26, 2018 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@kabirkbr
Copy link
Collaborator

It is somewhat weird, but sometimes socket 'message' writes two events simultaneously which crashes nodejs server, since it cannot parse them as valid json. I suppose this happens because the simulation is quite fast and somehow manage to send two event simultaneously to SocketWriter which somehow #2 merges them into one socket write... Currently the workaround is to add a timeout after an event that is emitted to the socket writer but it is not good as it slows the simulation...

@kabirkbr kabirkbr added the bug Something isn't working label Jun 26, 2018
@kabirkbr kabirkbr added this to the Someday milestone Jun 26, 2018
@kabirkbr kabirkbr self-assigned this Jun 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant