更新了关于 Nagle 算法

This commit is contained in:
riba2534
2019-01-19 17:35:37 +08:00
parent e1d6e95f1c
commit 4234cbf25d
2 changed files with 5 additions and 0 deletions

View File

@@ -2138,6 +2138,9 @@ getsockopt(sock, IPPROTO_TCP, TCP_NODELAY, (void *)&opt_val, opt_len);
如果正在使用`Nagle` 算法,那么 opt_val 值为 0如果禁用则为 1.
关于这个算法,可以参考这个回答:[TCP连接中启用和禁用TCP_NODELAY有什么影响](https://www.zhihu.com/question/42308970/answer/246334766)
### 9.4 基于 Windows 的实现
暂略

View File

@@ -222,6 +222,8 @@ getsockopt(sock, IPPROTO_TCP, TCP_NODELAY, (void *)&opt_val, opt_len);
如果正在使用`Nagle` 算法,那么 opt_val 值为 0如果禁用则为 1.
关于这个算法,可以参考这个回答:[TCP连接中启用和禁用TCP_NODELAY有什么影响](https://www.zhihu.com/question/42308970/answer/246334766)
### 9.4 基于 Windows 的实现
暂略