From 4234cbf25d38001513b1ea2f13d7f6a659fd3292 Mon Sep 17 00:00:00 2001 From: riba2534 Date: Sat, 19 Jan 2019 17:35:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BA=86=E5=85=B3=E4=BA=8E?= =?UTF-8?q?=20Nagle=20=E7=AE=97=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 +++ ch09/README.md | 2 ++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index ad6b8fa..ca4a139 100644 --- a/README.md +++ b/README.md @@ -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 的实现 暂略 diff --git a/ch09/README.md b/ch09/README.md index 4d38ebe..4c7ab80 100644 --- a/ch09/README.md +++ b/ch09/README.md @@ -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 的实现 暂略