Truncated request bodies

Eric Wong normalperson at yhbt.net
Sat Oct 24 23:49:37 EDT 2009


Eric Wong <normalperson at yhbt.net> wrote:
> 
> Does the following patch fix things for you?
> 
> diff --git a/lib/unicorn/util.rb b/lib/unicorn/util.rb
> index 6b35426..0f517e9 100644
> --- a/lib/unicorn/util.rb
> +++ b/lib/unicorn/util.rb
> @@ -54,7 +54,6 @@ module Unicorn
>          end
>          File.unlink(fp.path)
>          fp.binmode
> -        fp.sync = true
>          fp
>        end
> ---

Actually, that may not work since I need to call IO#stat.size,
in TeeInput, and if I explicitly call IO#flush then bad things
still end up happening :/

-- 
Eric Wong


More information about the mongrel-unicorn mailing list