Yes, that was my second thought. I haven't looked at the http parsing in
Jetty yet, but the Simple-libraries doesn't seem to match that well
since the parsing are spread out in many different places (at least
that's what I gathered after a cursory look).

/O

----- Original Message -----
From: Charles O Nutter <[EMAIL PROTECTED]>
Date: Sunday, June 18, 2006 6:27 am
Subject: Re: [Jruby-devel] Mongrel support.
To: [EMAIL PROTECTED], jruby-devel@lists.sourceforge.net

> I'd say to look at what the other fast HTTP servers are using; 
> jetty and
> simple are both very fast, and whatever they're using for HTTP 
> parsing might
> be neatly packaged. I'm sure there's others out there, but those 
> are the
> only two I know of. Tomcat has improved, but I think it's HTTP 
> parser is not
> as fast as those others.
> 
> I think a large selling point of Mongrel is, along with security, 
> the fact
> that it's so fast. Until we can fulfill all aspects of what makes 
> Mongrel so
> impressive, we can at least wire in a library for doing fast-enough 
> HTTPparsing to allow using Mongrel as a fast WEBrick replacement.
> 
> On 6/17/06, Ola Bini <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > There has been some discussion about the option of supporting 
> Mongrel in
> > JRuby, and how much effort this would take. As some maybe know, 
> Mongrel> is mostly Ruby (> 1.8.4), but the http-parser library is 
> writtein in C.
> > I've taken a look at the source code, and as far as I can see, this
> > shouldn't take much effort to convert into JRuby. The only thing 
> that> could be a problem is the parser itself, which is compiled 
> with a finite
> > state machine compiler called Ragel. The generated C-code is 
> about 1000
> > lines with loads and loads of gotos, which means it won't translate
> > cleanly to Java. I haven't really found a way to generate Java from
> > Ragel definitions yet, so the options are either to hand craft a
> > Http-parser or find another CC that can generate Java from Ragel-
> like> instructions. Since one of Mongrels main points is the safety 
> and> security benefits from a machine generated parser, it seems 
> like it
> > would defeat the purpose of Mongrel to write it ourselves.
> >
> > Opinions?
> >
> > /O
> >
> >
> > _______________________________________________
> > Jruby-devel mailing list
> > Jruby-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/jruby-devel
> >
> 
> 
> 
> -- 
> Charles Oliver Nutter @ headius.blogspot.com
> JRuby Developer @ jruby.sourceforge.net
> Application Architect @ www.ventera.com
> 


_______________________________________________
Jruby-devel mailing list
Jruby-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jruby-devel

Reply via email to