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

Possible concurrent issue #12

Closed
bodji opened this issue Apr 19, 2016 · 3 comments
Closed

Possible concurrent issue #12

bodji opened this issue Apr 19, 2016 · 3 comments

Comments

@bodji
Copy link
Contributor

bodji commented Apr 19, 2016

I have a problem with the library.
I think I know where it could come from.

The library is built with this schema :
1 - Lock conn
2 - Send command/event to socket
3 - Unlock conn
4 - Read channel apiChan/cmdChan to get response

With heavy load of commands, you can see that you can read from channel another response of another comand, since the unlock is before the reading part.

What do you think?

@danbogos
Copy link
Collaborator

danbogos commented Apr 19, 2016 via email

@bodji
Copy link
Contributor Author

bodji commented Apr 19, 2016

Thanks !
I'll try with a pool ;)

@bodji
Copy link
Contributor Author

bodji commented Apr 20, 2016

It's working better with a pool :)

Thanks !

@bodji bodji closed this as completed Apr 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants