Mercurial > hg > nginx-vendor-0-7
comparison src/os/unix/ngx_linux_sendfile_chain.c @ 300:cba14c1e2a4b NGINX_0_5_20
nginx 0.5.20
*) Feature: the "sendfile_max_chunk" directive.
*) Feature: the "$http_...", "$sent_http_...", and "$upstream_http_..."
variables may be changed using the "set" directive.
*) Bugfix: a segmentation fault might occur in worker process if the
SSI command 'if expr="$var = /"' was used.
*) Bugfix: trailing boundary of multipart range response was
transferred incorrectly.
Thanks to Evan Miller.
*) Bugfix: nginx did not work on Solaris/sparc64 if it was built by Sun
Studio.
Thanks to Andrei Nigmatulin.
*) Bugfix: the ngx_http_perl_module could not built by Solaris make.
Thanks to Andrei Nigmatulin.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 07 May 2007 00:00:00 +0400 |
parents | 30862655219e |
children | f7cd062ee035 |
comparison
equal
deleted
inserted
replaced
299:7d0d14dc5fd7 | 300:cba14c1e2a4b |
---|---|
252 #if (NGX_HAVE_SENDFILE64) | 252 #if (NGX_HAVE_SENDFILE64) |
253 offset = file->file_pos; | 253 offset = file->file_pos; |
254 #else | 254 #else |
255 offset = (int32_t) file->file_pos; | 255 offset = (int32_t) file->file_pos; |
256 #endif | 256 #endif |
257 | |
258 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0, | |
259 "sendfile: @%O %uz", file->file_pos, file_size); | |
260 | |
257 rc = sendfile(c->fd, file->file->fd, &offset, file_size); | 261 rc = sendfile(c->fd, file->file->fd, &offset, file_size); |
258 | 262 |
259 if (rc == -1) { | 263 if (rc == -1) { |
260 err = ngx_errno; | 264 err = ngx_errno; |
261 | 265 |