[Bug 50955] .netCore app can't bind to port shortly after another .netCore program binding to the same port was terminated
WineHQ Bugzilla
wine-bugs at winehq.org
Fri Apr 23 13:28:57 CDT 2021
https://bugs.winehq.org/show_bug.cgi?id=50955
--- Comment #3 from Bernhard <besentv at gmail.com> ---
After further investigation I found out that TerminateProcess() ends up calling
sock_destroy() inside wineserver. This function closes a socket normally
causing it to enter the TIME_WAIT state which makes binding a new socket to the
same port
impossible for some time, however on Windows TerminateProcess() closes the
connection with a RST, ACK package.
A first solution I found to this issue is to set the socket's linger time to 0
seconds before the call to shutdown() inside sock_destroy(), though I'm not
sure if it's a good one.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list