comparison src/os/unix/ngx_freebsd_sendfile_chain.c @ 203:c9da5900c79e

nginx-0.0.1-2003-12-02-08:47:29 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 02 Dec 2003 05:47:29 +0000
parents 267ea1d98683
children e0c502f15852
comparison
equal deleted inserted replaced
202:74994aeef848 203:c9da5900c79e
174 174
175 if (ngx_freebsd_sendfile_nbytes_bug == 0) { 175 if (ngx_freebsd_sendfile_nbytes_bug == 0) {
176 hsize = 0; 176 hsize = 0;
177 } 177 }
178 178
179 sent = 0;
180
179 rc = sendfile(file->file->fd, c->fd, file->file_pos, 181 rc = sendfile(file->file->fd, c->fd, file->file_pos,
180 fsize + hsize, &hdtr, &sent, 0); 182 fsize + hsize, &hdtr, &sent, 0);
181 183
182 if (rc == -1) { 184 if (rc == -1) {
183 err = ngx_errno; 185 err = ngx_errno;