nginx学习随笔--tcp-nopush
来源:互联网 发布:查看8080端口被占用 编辑:程序博客网 时间:2024/06/06 02:16
nginx学习随笔–tcp-nopush
英文原文:
Syntax: tcp_nopush on | off;Default: tcp_nopush off;Context: http, server, location
Enables or disables the use of the TCP_NOPUSH socket option on FreeBSD or the TCP_CORK socket option on Linux. The options are enabled only when sendfile is used. Enabling the option allows
- sending the response header and the beginning of a file in one
packet, on Linux and FreeBSD 4.*; - sending a file in full packets.
中文翻译:
允许或禁止在FreeBSD平台上的TCP_NOPUSH套接字选项或者linux平台上的TCP_CORK套接字选项。这些选项只有在使用sendfile启用的情况下才能被允许。被允许后可以:
在一个数据包里发送请求头和文件的开始部分;
在一个完整的数据包里发送文件。
在nginx中,tcp_nopush配置与tcp_nodelay“互斥”。它可以配置一次发送数据包的大小。也就是说,数据包累积到一定大小后就发送。
在nginx中tcp_nopush必须和sendfile配合使用。
阅读全文
0 0
- nginx学习随笔--tcp-nopush
- TCP/IP学习随笔
- 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学习随笔--tcp_nodelay
- nginx学习随笔--keepalive_timeout
- nginx学习随笔--keepalive_requests
- nginx学习随笔--ssl_session_cache
- nginx学习随笔--ssl_session_timeout
- nginx学习随笔--client_body_temp_path
- nginx学习随笔--proxy_temp_path
- JavaScript验证上传文件大小和类型
- java 不常用关键字
- 将keil中的数据绘成波形
- java 开发微信红包
- 六大设计原则
- nginx学习随笔--tcp-nopush
- Java菜鸟------在接受键盘输入只接受整形
- Java递归详解_动力节点Java学院
- 知识付费的时代,你更需要的是思想
- AndroidStudio-使用git&github
- java垃圾收集与内存分配策略
- UGUI 学习笔记 9 Scrollbar 和ScrollView
- BOM浏览器对象模型
- Android app 安装卸载