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

Console example stuck in lock #14

Closed
mdeforge opened this issue May 20, 2015 · 2 comments
Closed

Console example stuck in lock #14

mdeforge opened this issue May 20, 2015 · 2 comments

Comments

@mdeforge
Copy link

int Participants never gets incremented after entering Nickname causing "if ( participants<0)" to evaluate true and put the program in an eternal lock with "_cond.wait ( _lock )".

Trying to tinker with it to get it to work but not having much success. Pretty new to this stuff. My Node server is only receiving user connected/disconnected events. If I'm suppose to see things like "login" and "add user" I'm definitely not seeing those either. Probably due to the aforementioned issue.

@mdeforge
Copy link
Author

I didn't checkout and build the chat example from socket.io. Nevermind. https://github.com/Automattic/socket.io/tree/master/examples/chat

@melode11
Copy link
Contributor

Hi, the wait condition is to ensure the login is succeed.
Indeed I have met a similar issue before: If you're using incompatible version of socket.io and its modules, some functions will not work.(In my case latest socket.io and an older socket.io-adapter makes broadcast broken) ,result in the console client will never receive new broadcasted messages.

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