[Mongrel] [PATCH] HTTP accept filter support for FreeBSD

Thomas Hurst tom at hur.st
Sat Nov 25 16:37:22 EST 2006


* Zed A. Shaw (zedshaw at zedshaw.com) wrote:

> On Sat, 25 Nov 2006 10:52:33 +0000 Thomas Hurst <tom at hur.st> wrote:
>
> > This small patch extends configure_socket_options to support
> > FreeBSD's accf_http(9), which defers accept() until there's a full
> > HTTP request to read.
>
> Very nice.  This is in the 0.3.18 which is now on the pre-release
> site.  Try it out for me.

Thanks :)

> gem install mongrel --source=http://mongrel.rubyforge.org/releases/

This reinstalls 0.3.17 for me.  Had to grab the gem manually.

One of my camping apps now throws EINVAL; turns out I was calling
HttpServer#run twice, once in Mongrel::Camping.start, and again on the
returned HttpServer.  Oops.

The comments in mongrel/camping.rb say to do something like:

  Mongrel::Camping::start("0.0.0.0",3001,"/tepee",Tepee).join

But there's no HttpServer#join method; either it needs to return the
result from .run, .join needs to be added, or this should be changed to
.acceptor.join.

-- 
Thomas 'Freaky' Hurst
    http://hur.st/


More information about the Mongrel-users mailing list