eventmachine/eventmachine — pull request #436 by spatulasnout (2013-04-16 08:06:07+00:00)
Title: spatulasnout

Requesting pull for commit 84b3d4d05d16fa2b9200705c096a18c5c0e1039b:

Bug fix for OS_WIN32: Replaced errno with WSAGetLastError() where
result is compared with WSAE... codes.

Per http://msdn.microsoft.com/en-us/library/windows/desktop/ms737828%28v=vs.85%29.aspx
Error codes set by Windows Sockets are not made available through the
errno variable.

Comparison of errno values with WSAE codes was causing EventMachine
to spontaneously close socket connections when the errno value didn't
match the expected WSAE codes.