-
Committer:
Tatjana Azundris Nuernberg
-
Date:
2012-02-17 19:02:17 UTC
-
mto:
(2502.1186.1 51-13431369)
-
mto:
This revision was merged to the branch mainline in
revision
3149.
-
Revision ID:
tatjana.nuernberg@oracle.com-20120217190217-xfd9tdi9rlikkoqv
BUG#13431369 - MAIN.VARIABLES-NOTEMBEDDED CRASHES THE SERVER SPORADICALLY ON WINDOWS
On shutdown(), Windows can drop traffic still queued for sending even if that
wasn't specifically requested. As a result, fatal errors (those after
signaling which the server will drop the connection) were sometimes only
seen as "connection lost" on the client side, because the server-side
shutdown() erraneously discarded the correct error message before sending
it.
If on Windows, we now use the Windows API to access the (non-broken) equivalent
of shutdown().
Backport from trunk