[Mono-bugs] [Bug 53168][Blo] Changed - Operation on non-blocking socket would block

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 24 Jan 2004 11:34:24 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gonzalo@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=53168

--- shadow/53168	2004-01-24 09:44:12.000000000 -0500
+++ shadow/53168.tmp.8709	2004-01-24 11:34:24.000000000 -0500
@@ -118,6 +118,51 @@
 blocking socket would block.  If compiled/run using MS .NET 1.0 
 framework, no exception is thrown and the run eventually completes 
 successfully. 
 
 
 
+
+------- Additional Comments From gonzalo@ximian.com  2004-01-24 11:34 -------
+With current CVS i get this on the server side:
+----
+Listening on port 3465
+Sending: 009999
+Sending:
+0011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111119999
+Sending:
+00222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222229999
+ 
+** (TcpFlood.exe:10572): WARNING **: : unref on 33 called when ref was
+already 0EndSend threw exception - System.Net.Sockets.SocketException:
+The descriptor is not a socket
+in [0x00011] (at
+/home/gpanjav/go-mono/mcs/class/System/System.Net.Sockets/Socket.cs:44)
+.SocketAsyncResult:CheckIfThrowDelayedException ()
+in [0x0006f] (at
+/home/gpanjav/go-mono/mcs/class/System/System.Net.Sockets/Socket.cs:947)
+System.Net.Sockets.Socket:EndSend (System.IAsyncResult)
+in [0x0001a] (at /tmp/TcpFlood.cs:101) TcpFlood.TcpFlood:OnSentData
+(System.IAsyncResult)
+ 
+ 
+** (TcpFlood.exe:10572): WARNING **: : unref on 24 called when ref was
+already 0
+----
+
+And on the client side:
+-----
+Received: 009999
+Received:
+0011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111119999
+OnReceivedData failed - The descriptor is not a socket
+gpanjav@k7:/tmp$ mono TcpFlood.exe localhost 3465
+Received: 009999
+Received:
+0011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111119999
+OnReceivedData failed - The descriptor is not a socket
+-----
+
+and then the client finishes.
+May be other fixes I commited today for the Socket class fixed tne
+blocking issue, but we seem to have a problem anyway.
+