diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-06-11 15:28:34 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-06-11 15:28:34 +0000 |
commit | 239baac646073cab7bbaf537ba2d6ca844f2c992 (patch) | |
tree | c7c3f61213697a68dc95898d27a730c08abce049 /src/os/unix/ngx_freebsd_sendfile_chain.c | |
parent | e4a2526e5ccd4f3f5f160656c1a7b6f865ac44c8 (diff) | |
download | nginx-239baac646073cab7bbaf537ba2d6ca844f2c992.tar.gz nginx-239baac646073cab7bbaf537ba2d6ca844f2c992.zip |
nginx-0.0.1-2003-06-11-19:28:34 import
Diffstat (limited to 'src/os/unix/ngx_freebsd_sendfile_chain.c')
-rw-r--r-- | src/os/unix/ngx_freebsd_sendfile_chain.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/os/unix/ngx_freebsd_sendfile_chain.c b/src/os/unix/ngx_freebsd_sendfile_chain.c index a888c3613..a3c813e38 100644 --- a/src/os/unix/ngx_freebsd_sendfile_chain.c +++ b/src/os/unix/ngx_freebsd_sendfile_chain.c @@ -15,7 +15,8 @@ Until FreeBSD 4.5 the turning TCP_NOPUSH off does not not flush the pending data that less than MSS and the data sent with 5 second delay. - So we use TCP_NOPUSH on FreeBSD 4.5+ only. + So we use TCP_NOPUSH on FreeBSD prior to 4.5 only if the connection + is not needed not keepalive. */ @@ -23,7 +24,7 @@ ngx_chain_t *ngx_freebsd_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in) { int rc, eintr, tcp_nopush; char *prev; - size_t hsize, size; + ssize_t hsize, size; off_t sent; struct iovec *iov; struct sf_hdtr hdtr; |