Handle special case when disposing a socket.
When disposing a socket that has more than one asynchronous read/write pending, one of the callbacks could call DisposeAllOnClose() while another one is waiting on the lock. Once the lock is acquired, queue.Count will be 0 and Dequeue would fail. This if fixed now. Fixes bug #645675.
Showing
想要评论请 注册 或 登录