Skip to content

spatulasnout#436

Closed
spatulasnout wants to merge 8 commits into
eventmachine:masterfrom
spatulasnout:spatulasnout
Closed

spatulasnout#436
spatulasnout wants to merge 8 commits into
eventmachine:masterfrom
spatulasnout:spatulasnout

Conversation

@spatulasnout

Copy link
Copy Markdown
Contributor

Requesting pull for commit 84b3d4d:

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.

defaulting to true.

CLOEXEC is set in all cases except AttachFD, Popen, and
Socketpair.
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.
@spatulasnout

Copy link
Copy Markdown
Contributor Author

Ugh, sorry. My first pull request. Only meant to be for commit 84b3d4d , not my entire branch.

(I'd closed this, but haven't figured out how to create a pull request for just a single commit, so I've reopened it.)

@tmm1

tmm1 commented Apr 16, 2013

Copy link
Copy Markdown
Contributor

I've cherry-picked the commit as ff811a8. Thanks.

@tmm1 tmm1 closed this Apr 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants