[Mono-bugs] [Bug 470120] Socket.EndSend unexpectedly fails with WSAEWOULDBLOCK

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jul 22 10:55:59 EDT 2009


User gonzalo at novell.com added comment

Gonzalo Paniagua Javier <gonzalo at novell.com> changed:

           What    |Removed                     |Added
             Status|REOPENED                    |ASSIGNED

--- Comment #9 from Gonzalo Paniagua Javier <gonzalo at novell.com>  2009-07-22 08:55:56 MDT ---
The problem is not handling EWOULDBLOCK. The problem is that after poll() says
the socket is ready, send() returns that error. It does not happen in any other
OS but the Mac.

The IO threadpool uses epoll/poll/select and when the socket is marked as
ready, it performs a synchronous recv/send, which is the one failing with
EAGAIN/EWOULDBLOCK on the Mac. Until now, we were not checking errors in this
recv/send and were just passing them back to managed code.

If I attach a patch here, will you be able to compile mono from sources and

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list