Browse code

- 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 authored on 14/12/2007 01:50:39
Showing 1 changed files
... ...
@@ -90,7 +90,7 @@
90 90
  *  2007-12-04  support for queueing write requests (andrei)
91 91
  *  2007-12-12  destroy connection asap on wbuf. timeout (andrei)
92 92
  *  2007-12-13  changed the refcnt and destroy scheme, now refcnt is 1 if
93
- *                linked into the hash tables (was 0)  (andrei)
93
+ *                linked into the hash tables (was 0) (andrei)
94 94
  */
95 95
 
96 96
 
... ...
@@ -1824,7 +1824,7 @@ static void tcpconn_destroy(struct tcp_connection* tcpconn)
1824 1824
 
1825 1825
 
1826 1826
 /* close tcp_main's fd from a tcpconn
1827
- * call only in tcp_main context */
1827
+ * WARNING: call only in tcp_main context */
1828 1828
 inline static void tcpconn_close_main_fd(struct tcp_connection* tcpconn)
1829 1829
 {
1830 1830
 	int fd;