Skip to content

Commit 67c4b3c

Browse files
committed
add connect call error related questions
1 parent 7f7f7a1 commit 67c4b3c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

network.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,11 @@
385385

386386
120、TCP中zero window表示什么?
387387
(tips:表示接收端缓存满,无法继续接收数据)
388+
389+
121、connect 出错的socket可以直接再次调用connect实现reconnect吗?
390+
(tips:不能,如果是timeout错误,会在重传尝试最大次数后调用tcp_write_err,
391+
进而调用tcp_done,设置socket的状态为TCP_CLOSE;
392+
如果是遇到RST回包,那就直接走CLOSE流程了,也就不能再用这个socket了)
388393

389394

390395
// http

0 commit comments

Comments
 (0)