Bug #397: linux socket stays open after server shutdown
|Submitted||16th Oct 2015|
|Updated||17th Mar 2022|
On linux while shutting down the server for a reboot, the created socket stays open for approximately 2 minutes until expiring/cleaning up. (this is normal as I've read online)
Upon trying to start eoserv you'll receive an binding error saying already in use. You can either reboot the pc or wait 2 minutes.
too correct this you can set a socket option "SO_REUSEADDR" similar to what you have in Client::Bind() in Server::Bind() or something similar to that.
If you have a better solution to correct this behavior i'd be interested:)
Please don't post unless you have something relevant to the bug to say.
Do not comment to say "thanks" or "fix this please".
Please log in to add comments. EOSERV Bug Tracker > Bug #397: linux socket stays open after server shutdown