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

test.c add sleep(1) #18

Open
hammersmith-xie opened this issue Sep 3, 2020 · 1 comment
Open

test.c add sleep(1) #18

hammersmith-xie opened this issue Sep 3, 2020 · 1 comment

Comments

@hammersmith-xie
Copy link

There may be thread contention, libwsclient_run was executed before the handshake was completed, causing the connection to fail.

@PixMod
Copy link

PixMod commented Sep 7, 2020

libwsclient_run() calls

pthread_join(c->handshake_thread, NULL);

before creating thread.
So there's no problem.

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