comparison src/os/unix/ngx_files.c @ 469:2ff194b74f1e release-0.1.9

nginx-0.1.9-RELEASE import *) 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; the bug had appeared in 0.1.8.
author Igor Sysoev <igor@sysoev.ru>
date Thu, 25 Nov 2004 16:17:31 +0000
parents bbd6b0b4a2b1
children d4ea69372b94
comparison
equal deleted inserted replaced
468:1a67596d0349 469:2ff194b74f1e
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");