inet driver problem

Johan Blom johan.blom@REDACTED
Mon Jul 15 09:52:42 CEST 2002


Hi, 

found a bug in the OTP-R8B-1 version of inet_drv.c when concurrently
sending and receiving from the same socket in passive mode.
Sometimes a gen_tcp:recv/3 could be just hanging infinitely while
sending on the same socket.
This should now be fixed with the following patch.


Johan Blom 
Mobile Arts
-------------- next part --------------
--- inet_drv.c-orig	Fri Jul 12 11:50:40 2002
+++ inet_drv.c	Fri Jul 12 11:53:08 2002
@@ -5779,6 +5779,8 @@
 	}
 	else {
 	    tcp_clear_output(desc);
+	    tcp_clear_input(desc);
+	    tcp_close_check(desc);
 	    inet_close(INETP(desc));
 	    inet_reply_error_am(INETP(desc), am_closed);
 	}


More information about the erlang-questions mailing list