Mercurial > hg > nginx
diff src/http/ngx_http_header_filter.c @ 143:5526213be452
nginx-0.0.1-2003-10-10-19:10:50 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 10 Oct 2003 15:10:50 +0000 |
parents | e29909bd9b8a |
children | ef8c87afcfc5 |
line wrap: on
line diff
--- a/src/http/ngx_http_header_filter.c +++ b/src/http/ngx_http_header_filter.c @@ -4,12 +4,6 @@ #include <ngx_http.h> #include <nginx.h> -/* STUB probably, needed for ngx_freebsd_tcp_nopush_flush */ -#ifdef __FreeBSD__ -#include <ngx_freebsd_init.h> -#endif - - static int ngx_http_header_filter_init(ngx_cycle_t *cycle); static int ngx_http_header_filter(ngx_http_request_t *r); @@ -100,23 +94,6 @@ static int ngx_http_header_filter(ngx_ht ngx_chain_t *ch; ngx_table_elt_t *header; -#ifdef __FreeBSD__ - - if (r->keepalive) { - if (ngx_freebsd_tcp_nopush_flush) { - r->connection->tcp_nopush_enabled = 1; - } - - } else { - r->connection->tcp_nopush_enabled = 1; - } - -#else - - r->connection->tcp_nopush_enabled = 1; - -#endif - if (r->http_version < NGX_HTTP_VERSION_10) { return NGX_OK; }