Mercurial > hg > nginx-vendor-1-0
comparison src/os/unix/ngx_files.c @ 18:6f8b0dc0f8dd NGINX_0_1_9
nginx 0.1.9
*) Bugfix: the proxied request was sent without arguments if the
request contains "//", "/./", "/../" or "%XX".
*) Bugfix: the large compressed responses may be transferred not
completely.
*) Bugfix: the files bigger than 2G was not transferred on Linux that
does not support sendfile64().
*) Bugfix: while the build configuration on Linux the
--with-poll_module parameter was required; bug appeared in 0.1.8.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Thu, 25 Nov 2004 00:00:00 +0300 |
parents | 74b1868dd3cd |
children | 72eb30262aac |
comparison
equal
deleted
inserted
replaced
17:9acb68bb0698 | 18:6f8b0dc0f8dd |
---|---|
13 ssize_t n; | 13 ssize_t n; |
14 | 14 |
15 ngx_log_debug4(NGX_LOG_DEBUG_CORE, file->log, 0, | 15 ngx_log_debug4(NGX_LOG_DEBUG_CORE, file->log, 0, |
16 "read: %d, %p, %uz, %O", file->fd, buf, size, offset); | 16 "read: %d, %p, %uz, %O", file->fd, buf, size, offset); |
17 | 17 |
18 #if (NGX_PREAD) | 18 #if (NGX_HAVE_PREAD) |
19 | 19 |
20 n = pread(file->fd, buf, size, offset); | 20 n = pread(file->fd, buf, size, offset); |
21 | 21 |
22 if (n == -1) { | 22 if (n == -1) { |
23 ngx_log_error(NGX_LOG_CRIT, file->log, ngx_errno, | 23 ngx_log_error(NGX_LOG_CRIT, file->log, ngx_errno, |
58 ssize_t n; | 58 ssize_t n; |
59 | 59 |
60 ngx_log_debug4(NGX_LOG_DEBUG_CORE, file->log, 0, | 60 ngx_log_debug4(NGX_LOG_DEBUG_CORE, file->log, 0, |
61 "write: %d, %p, %uz, %O", file->fd, buf, size, offset); | 61 "write: %d, %p, %uz, %O", file->fd, buf, size, offset); |
62 | 62 |
63 #if (NGX_PWRITE) | 63 #if (NGX_HAVE_PWRITE) |
64 | 64 |
65 n = pwrite(file->fd, buf, size, offset); | 65 n = pwrite(file->fd, buf, size, offset); |
66 | 66 |
67 if (n == -1) { | 67 if (n == -1) { |
68 ngx_log_error(NGX_LOG_CRIT, file->log, ngx_errno, "pwrite() failed"); | 68 ngx_log_error(NGX_LOG_CRIT, file->log, ngx_errno, "pwrite() failed"); |