소스 검색

- 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 년 전
부모
커밋
db237b38b3
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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;