Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
How to reuse TCP listening socket immediately after it was connectedat least once?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Igor Katson, post: 3867393, member: 153539"] I have written a socket server and some arbitrary clients. When I shutdown the server, and do socket.close, I cannot immediately start it again cause it has some open sockets in TIME_WAIT state. It throws address already in use exception at me. I have searched for that in google but haven't found a way to solve that. Tried setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) but that does not help. Is there a nice way to overcome this? [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
How to reuse TCP listening socket immediately after it was connectedat least once?
Top