[or-cvs] stop a sigpipe.

Roger Dingledine arma at seul.org
Mon Jan 31 08:12:32 UTC 2005


Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or

Modified Files:
	connection_edge.c 
Log Message:
stop a sigpipe.
apparently when we get an eof, at least sometimes it *does* mean
you'd better not try writing.


Index: connection_edge.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/connection_edge.c,v
retrieving revision 1.269
retrieving revision 1.270
diff -u -d -r1.269 -r1.270
--- connection_edge.c	28 Jan 2005 08:53:47 -0000	1.269
+++ connection_edge.c	31 Jan 2005 08:12:30 -0000	1.270
@@ -45,8 +45,8 @@
      * get the 'end' right around when the client hangs up on us. */
     connection_edge_end(conn, END_STREAM_REASON_DONE, conn->cpath_layer);
     connection_mark_for_close(conn);
-    conn->hold_open_until_flushed = 1; /* just because we shouldn't read
-                                          doesn't mean we shouldn't write */
+//    conn->hold_open_until_flushed = 1; /* just because we shouldn't read
+//                                          doesn't mean we shouldn't write */
   }
   return 0;
 #endif



More information about the tor-commits mailing list