Переглянути джерело

stop a sigpipe.
apparently when we get an eof, at least sometimes it *does* mean
you'd better not try writing.


svn:r3481

Roger Dingledine 20 роки тому
батько
коміт
d232831135
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      src/or/connection_edge.c

+ 2 - 2
src/or/connection_edge.c

@@ -45,8 +45,8 @@ int connection_edge_reached_eof(connection_t *conn) {
      * get the 'end' right around when the client hangs up on us. */
      * get the 'end' right around when the client hangs up on us. */
     connection_edge_end(conn, END_STREAM_REASON_DONE, conn->cpath_layer);
     connection_edge_end(conn, END_STREAM_REASON_DONE, conn->cpath_layer);
     connection_mark_for_close(conn);
     connection_mark_for_close(conn);
-    conn->hold_open_until_flushed = 1; /* just because we shouldn't read
+//    conn->hold_open_until_flushed = 1; /* just because we shouldn't read
-                                          doesn't mean we shouldn't write */
+//                                          doesn't mean we shouldn't write */
   }
   }
   return 0;
   return 0;
 #endif
 #endif