[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


http://bugzilla.novell.com/show_bug.cgi?id=470120

User gonzalo at novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=470120#c9


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
test?

-- 
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