[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] stop a sigpipe.



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