nginx学习随笔--tcp_nodelay
来源:互联网 发布:极限编程和瀑布模型 编辑:程序博客网 时间:2024/05/16 15:13
nginx学习随笔–tcp_nodelay
英文原文:
Syntax: tcp_nodelay on | off;Default: tcp_nodelay on;Context: http, server, location
Enables or disables the use of the TCP_NODELAY option. The option is enabled only when a connection is transitioned into the keep-alive state.
中文翻译:
允许或者禁止使用TCP_NODELAY选项。这个选项只有在连接变成keep-alive状态时,才允许使用。
- tcp_nodelay指令作用于socket参数TCP_NODELAY。
- tcp_nodelay是nagle算法启用与否的开关。有些应用在网络通讯时会发送很少的字节,比如一个字节,而这一个字节又以网络数据包的形式发送到远端服务器,那么如果此类的数据包过多,就会导致网络过载。而nagle算法可以实现如果发送端欲多次发送包含少量字符的数据包,则发送端会先将第一个小包发送出去,将后面的少量字符数据都缓存起来而不立即发送,直到收到接收端对前一个数据包报文段的ACK确认、或当前字符属于紧急数据,或者积攒到一定数量的数据等多种情况才将其组成一个较大的数据包发送出去。
阅读全文
0 0
- nginx学习随笔--tcp_nodelay
- nginx之tcp_nopush、tcp_nodelay
- nginx学习随笔--worker_processes
- nginx学习随笔--error_log
- nginx学习随笔--pid
- nginx学习随笔--worker_rlimit_nofile
- nginx学习随笔--worker_rlimit_core
- nginx学习随笔--events
- nginx学习随笔--use
- nginx学习随笔--multi_accept
- nginx学习随笔--sendfile
- nginx学习随笔--keepalive_timeout
- nginx学习随笔--keepalive_requests
- nginx学习随笔--ssl_session_cache
- nginx学习随笔--ssl_session_timeout
- nginx学习随笔--client_body_temp_path
- nginx学习随笔--proxy_temp_path
- nginx 的 tcp_nopush 和 tcp_nodelay
- JSTL表达式
- 极化码小结(2)
- ora-01033:oracle initialization or shutdown in progress
- rsync linux机器之间的同步
- oracle打印九九乘法表
- nginx学习随笔--tcp_nodelay
- react native学习笔记8——网络请求
- activemq 安装环境配置
- CTF之MISC杂项从入门到放弃
- 关于写博客
- SecureCRT配色推荐和永久设置
- 深度学习简介
- RobotFrameWork(十)Remote远程库使用
- CycleGAN(以及DiscoGAN和DualGAN)简介