Anyone think about writing an EventMachine-based HttpServer? It should be fairly trivial to write one using Mongrel''s HttpParser. -- Tony Arcieri ClickCaster, Inc. tony at clickcaster.com (970) 232-4208 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20070302/9eafdcbb/attachment.html
On 3/2/07, Tony Arcieri <tony at clickcaster.com> wrote:> Anyone think about writing an EventMachine-based HttpServer? It should be > fairly trivial to write one using Mongrel''s HttpParser.I already have. One of IOWA''s run modes essentially implements an HTTP server using EM + Mongrel''s parser. Francis also has an HttpMachine parser that I have interfaced to, but it still needs a bit of work. Kirk Haines
On 3/2/07, Tony Arcieri <tony at clickcaster.com> wrote:> > Anyone think about writing an EventMachine-based HttpServer? It should be > fairly trivial to write one using Mongrel''s HttpParser.i have one. Kirk has been using it. I''ll try to publish it this weekend. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20070302/ce2808d2/attachment.html
Hey Francis I''m actually in need of a basic http server to handle simple post requests. I''ve got enough lying around and from stuff that is already in em subversion to do the job, but if you have something that''s improved I''d love to see it. Chris
On 3/4/07, snacktime <snacktime at gmail.com> wrote:> > Hey Francis I''m actually in need of a basic http server to handle > simple post requests. I''ve got enough lying around and from stuff > that is already in em subversion to do the job, but if you have > something that''s improved I''d love to see it.I''m doing some refactoring now. I''ll post some gems to this list and then hopefully you guys can tell me if it makes any sense. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20070304/5b94777b/attachment.html
On 3/4/07, Francis Cianfrocca <garbagecat10 at gmail.com> wrote:> I''m doing some refactoring now. I''ll post some gems to this list and then > hopefully you guys can tell me if it makes any sense.Since I already have a basic, functional HTTP server built on EM plus that early version of HttpMachine, Francis, once you post your refactored code, we should be able to have something running pretty fast. Kirk
On 3/4/07, Kirk Haines <wyhaines at gmail.com> wrote:> > On 3/4/07, Francis Cianfrocca <garbagecat10 at gmail.com> wrote: > > > I''m doing some refactoring now. I''ll post some gems to this list and > then > > hopefully you guys can tell me if it makes any sense. > > Since I already have a basic, functional HTTP server built on EM plus > that early version of HttpMachine, Francis, once you post your > refactored code, we should be able to have something running pretty > fast.Yes, among other things, I''ve already added a flag that avoids setting up CGI-style environment strings. If you use it, you can no longer use cgi.rb(but who''d want to?). This should bump up performance quite a lot. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20070305/f2e47440/attachment.html
On 3/5/07, Francis Cianfrocca <garbagecat10 at gmail.com> wrote:> Yes, among other things, I''ve already added a flag that avoids setting up > CGI-style environment strings. If you use it, you can no longer use cgi.rb > (but who''d want to?). This should bump up performance quite a lot.Pretty please can I get a copy? I''d like to fit it into my existing EM/HttpMachine runner and see how it behaves. Kirk