[PATCH] KNOWN_ISSUES: FreeBSD 8 and sendfile can be buggy

Eric Wong normalperson at yhbt.net
Tue Jan 25 16:33:27 EST 2011


Alexey Bondar <alexey.bondar at gmail.com> wrote:
> On Jan 25, 2011, at 07:54 , Eric Wong wrote:
> > Alexey Bondar <alexey.bondar at gmail.com> wrote:
> >> Hm. Yeah, direct access works well. 
> >> Uh, what can be wrong with nginx config in this case? :(
> > 
> > I would trim your config down the the bare minimum and use the defaults
> > wherever you can.  Then start adding things back in and see what broke
> > it.
> 
> Maxim Dounin from nginx mail list says that this issue caused by some issues with sendfile in
> FreeBSD 8. 
> 
> After setting sendfile to off uploads works well. 
> 
> You can add this info to known 3rd party issues. :)

Thanks Alexey!

>From 8ac0ae45a04f5f121f323c182403ef6eb0d8aa18 Mon Sep 17 00:00:00 2001
From: Eric Wong <normalperson at yhbt.net>
Date: Tue, 25 Jan 2011 13:30:21 -0800
Subject: [PATCH] KNOWN_ISSUES: FreeBSD 8 and sendfile can be buggy

Reported by Alexey Bondar.
---
 KNOWN_ISSUES |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/KNOWN_ISSUES b/KNOWN_ISSUES
index bc3dac5..95f4e43 100644
--- a/KNOWN_ISSUES
+++ b/KNOWN_ISSUES
@@ -6,6 +6,10 @@ acceptable solution.  Those issues are documented here.
 * For notes on sandboxing tools such as Bundler or Isolate,
   see the {Sandbox}[link:Sandbox.html] page.
 
+* nginx with "sendfile on" under FreeBSD 8 is broken when
+  uploads are buffered to disk.  Disabling sendfile is required to
+  work around this bug which should be fixed in newer versions of FreeBSD.
+
 * Under Ruby 1.9.1, methods like Array#shuffle and Array#sample will
   segfault if called after forking.  This is fixed in trunk (r26936) and
   should be backported to the next 1.9.1 stable release (after p378).
-- 
Eric Wong


More information about the mongrel-unicorn mailing list