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

Mention need for listen.wait_for_connection() in docs #2126

Merged
merged 1 commit into from Oct 27, 2022

Conversation

peace-maker
Copy link
Member

You have to call listen.wait_for_connection() before using the listen socket or you face raceconditions with the thread accepting the client connection. Mention that fact more explicitly in the docs instead of just in the example code. The IPv6 example was even missing said call.

Fixes #2100

You have to call `listen.wait_for_connection()` before using the listen socket or you face raceconditions with the thread accepting the client connection.

Fixes Gallopsled#2100
@Arusekk Arusekk merged commit 4ddb702 into Gallopsled:dev Oct 27, 2022
@peace-maker peace-maker deleted the listen_wait_for_connection_docs branch October 27, 2022 15:36
gogo2464 pushed a commit to gogo2464/pwntools that referenced this pull request Sep 10, 2023
)

You have to call `listen.wait_for_connection()` before using the listen socket or you face raceconditions with the thread accepting the client connection.

Fixes Gallopsled#2100
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

Successfully merging this pull request may close these issues.

Raise AttributeError when closing a socket
2 participants