]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
stop a sigpipe.
authorRoger Dingledine <arma@torproject.org>
Mon, 31 Jan 2005 08:12:30 +0000 (08:12 +0000)
committerRoger Dingledine <arma@torproject.org>
Mon, 31 Jan 2005 08:12:30 +0000 (08:12 +0000)
apparently when we get an eof, at least sometimes it *does* mean
you'd better not try writing.

svn:r3481

src/or/connection_edge.c

index 16ef484f878227271abf4c29592e792cd7761cf5..edc8379d152621806db1d45a1362e485b84c904d 100644 (file)
@@ -45,8 +45,8 @@ int connection_edge_reached_eof(connection_t *conn) {
      * 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