http support? Interesting. As a part of some (soon to be opensourced) server I have recently implemented a 'sufficient' subset of HTTP 1.1 (get/POST/keepalive).
It turned out that every HTTP client out there (curl, apache benchmark wget e t.c. e t.c.) behaves a little funny with some tricky parts of HTTP spec, such as keepalives for example (violating the standards actually) : http://www.io.com/~maus/HttpKeepAlive.html This is all no big deal for handling 1 hps but my goal (achieved) was to handle 20-40K hps (libevent rocks! my server beats apache2 by the factor of 2) As a result there was kind of a tradeoff between "implement the right thing" or "implement whatever works with any (broken) http client". Another tradeoff is "how much of http requests to parse inside the http layer and how much of a parsing should be left to the application". It will be interesting to compare out approaches and see if there would be performance differences. I do not actually use streaming part of libevent, because there is a bit of assymetry in HTTP (I try to suck in the request in one read, because that will usually be the case == get -- and threat all other cases as a "special case". Don't understand how to map that easily into libevent buffered events, because the nature of a protocol 'changes on the fly') 1. If you want - I can eventually review your implementation to help eliminating all those funny portability troubles that I discovered during several months of stresstesting. 2. If anybody wants to play with / improve my "http on top of libevent implementation" - pelase email me offlist - the code should go opensource by the middle of September. Rgds.Paul. --- Niels Provos <[EMAIL PROTECTED]> wrote: > It has been in the works for a while. I still need > to clean up some > of the http support and then start testing on > platforms. So, it's > probably still a few months off. > > Niels. > > On 8/6/06, Alexander Lazic <[EMAIL PROTECTED]> > wrote: > > Hi nils, > > > > have you a timeline when you plan to release the > 1.2 ;-) > > > > regards > > > > Alex > > _______________________________________________ > > Libevent-users mailing list > > Libevent-users@monkey.org > > http://monkey.org/mailman/listinfo/libevent-users > > > > > _______________________________________________ > Libevent-users mailing list > Libevent-users@monkey.org > http://monkey.org/mailman/listinfo/libevent-users > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Libevent-users mailing list Libevent-users@monkey.org http://monkey.org/mailman/listinfo/libevent-users