2008-05-29 Dick Porter <dick@ximian.com>
* threadpool.c (mono_thread_pool_remove_socket): Always remove the
async socket operations from the pending list when a socket
closes. Leaving it until the threadpool services the event
exposes a race condition when a socket descriptor is reused.
Fixes bug 377589.
2008-05-29 Dick Porter <dick@ximian.com>
* sockets.c (socket_close): Clear any saved errors
(_wapi_connect): Don't save EWOULDBLOCK errors here, as that
breaks async connects. (Bug 377589 test case broken by the
previous fix to bug 356552)
svn path=/trunk/mono/; revision=104409