Răsfoiți Sursa

- tcp: - try to destroy a conenction on error asap, even if it's referenced
(in this case destroy it partially - close fds a.s.o)
- changed refcnt usage

Andrei Pelinescu-Onciul 18 ani în urmă
părinte
comite
db237b38b3
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      tcp_main.c

+ 2 - 2
tcp_main.c

@@ -90,7 +90,7 @@
  *  2007-12-04  support for queueing write requests (andrei)
  *  2007-12-12  destroy connection asap on wbuf. timeout (andrei)
  *  2007-12-13  changed the refcnt and destroy scheme, now refcnt is 1 if
- *                linked into the hash tables (was 0)  (andrei)
+ *                linked into the hash tables (was 0) (andrei)
  */
 
 
@@ -1824,7 +1824,7 @@ static void tcpconn_destroy(struct tcp_connection* tcpconn)
 
 
 /* close tcp_main's fd from a tcpconn
- * call only in tcp_main context */
+ * WARNING: call only in tcp_main context */
 inline static void tcpconn_close_main_fd(struct tcp_connection* tcpconn)
 {
 	int fd;