comparison src/os/unix/ngx_freebsd_sendfile_chain.c @ 670:ad45b044f1e5 NGINX_1_1_19

nginx 1.1.19 *) Security: specially crafted mp4 file might allow to overwrite memory locations in a worker process if the ngx_http_mp4_module was used, potentially resulting in arbitrary code execution (CVE-2012-2089). Thanks to Matthew Daley. *) Bugfix: nginx/Windows might be terminated abnormally. Thanks to Vincent Lee. *) Bugfix: nginx hogged CPU if all servers in an upstream were marked as "backup". *) Bugfix: the "allow" and "deny" directives might be inherited incorrectly if they were used with IPv6 addresses. *) Bugfix: the "modern_browser" and "ancient_browser" directives might be inherited incorrectly. *) Bugfix: timeouts might be handled incorrectly on Solaris/SPARC. *) Bugfix: in the ngx_http_mp4_module.
author Igor Sysoev <http://sysoev.ru>
date Thu, 12 Apr 2012 00:00:00 +0400
parents f5b859b2f097
children f41d4b305d22
comparison
equal deleted inserted replaced
669:3f5d0be5ee74 670:ad45b044f1e5
16 * FreeBSD 5.3. Besides, over the fast ethernet connection sendfile() 16 * FreeBSD 5.3. Besides, over the fast ethernet connection sendfile()
17 * may send the partially filled packets, i.e. the 8 file pages may be sent 17 * may send the partially filled packets, i.e. the 8 file pages may be sent
18 * as the 11 full 1460-bytes packets, then one incomplete 324-bytes packet, 18 * as the 11 full 1460-bytes packets, then one incomplete 324-bytes packet,
19 * and then again the 11 full 1460-bytes packets. 19 * and then again the 11 full 1460-bytes packets.
20 * 20 *
21 * Threfore we use the TCP_NOPUSH option (similar to Linux's TCP_CORK) 21 * Therefore we use the TCP_NOPUSH option (similar to Linux's TCP_CORK)
22 * to postpone the sending - it not only sends a header and the first part of 22 * to postpone the sending - it not only sends a header and the first part of
23 * the file in one packet, but also sends the file pages in the full packets. 23 * the file in one packet, but also sends the file pages in the full packets.
24 * 24 *
25 * But until FreeBSD 4.5 turning TCP_NOPUSH off does not flush a pending 25 * But until FreeBSD 4.5 turning TCP_NOPUSH off does not flush a pending
26 * data that less than MSS, so that data may be sent with 5 second delay. 26 * data that less than MSS, so that data may be sent with 5 second delay.