Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev ][Date Next ][Thread Prev ][Thread Next ][Date Index ][Thread Index ]
Re: amd64, sendfile & файл ы > 4GB
On Mon, Apr 23, 2007 at 08:58:10PM +0400, proforg wrote:
> забыл :(
> для этого локейшна:
Этого куска достаточно, но не хватает данных - можно наложить
прилагаемый патч и повторить ?
--
Игорь Сысоев
http://sysoev.ru
Index: src/os/unix/ngx_linux_sendfile_chain.c
===================================================================
--- src/os/unix/ngx_linux_sendfile_chain.c (revision 500)
+++ src/os/unix/ngx_linux_sendfile_chain.c (working copy)
@@ -254,6 +254,10 @@
#else
offset = (int32_t) file->file_pos;
#endif
+
+ ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0,
+ "sendfile: @%O %uz", offset, file_size);
+
rc = sendfile(c->fd, file->file->fd, &offset, file_size);
if (rc == -1) {