Martin Wilck Martin.Wilck@fujitsu-siemens.com writes:
PATCH: accept-deferred.diff
If a connection request is deferred in a call to WSAAccept(), a subsequent accept()/WSAAccept() call must return the previously deferred connection rather than a new one.
You cannot store a handle to the deferred socket in the server, you must store a pointer to the object and allocate a handle when returning it to the application. Handles are only valid in one process so they cannot be part of a server object that is potentially shared between several processes.