DragonFly BSD
DragonFly bugs List (threaded) for 2012-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[DragonFlyBSD - Bug #2263] nginx loses/garbles data if buffering to disk


From: Matthias Rampke via Redmine <bugtracker-admin@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 22 Jan 2012 05:00:44 -0800

Issue #2263 has been updated by Matthias Rampke.


It very much seems sendfile is the culprit â?? after setting 'sendfile off;' in the nginx config I could let the test run for >1h straight without problems.
----------------------------------------
Bug #2263: nginx loses/garbles data if buffering to disk
http://bugs.dragonflybsd.org/issues/2263

Author: Matthias Rampke
Status: New
Priority: Normal
Assignee: 
Category: 
Target version: 


I recently moved my web server to DragonFly and noticed that for very large responses from a web app accessed through nginx via fastcgi_pass or proxy_pass parts of the response are lost. This happens in the middle of the response, at more or less random locations (more towards the end). It used to work fine on Debian Linux.

I suspect that this is related to nginx buffering large responses to disk. I have created a testcase (test file, although anything large enough would work; nginx config snippet, repeated test download script, see attachments). With proxy_buffers left at the default, the downloaded file2.txt differs every few attempts. With the buffer size cranked up it works reliably. Both variants work reliably on OS X.

Note that this is also almost a Heisenbug â?? it takes a lot more tries until something goes wrong while ktrace'ing. ktrace available at http://2pktfkt.de/dfly/nginx_ktrace.out (~300MB â?? also http://2pktfkt.de/dfly/nginx_ktrace.out.xz soon)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]