Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
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



   .


-- 
 
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)
@@ -223,7 +223,7 @@
                     size = limit - send;
 
                     aligned = (cl->buf->file_pos + size + ngx_pagesize - 1)
-                                                      & ~(ngx_pagesize - 1);
+                               & ~((off_t) ngx_pagesize - 1);
 
                     if (aligned <= cl->buf->file_last) {
                         size = aligned - cl->buf->file_pos;


 




Copyright © Lexa Software, 1996-2009.