[Libevent-users] Re: Please try out this source distribution before it becomes 2.0.11-stable?

2011-04-26 Thread Nick Mathewson
On Sat, Apr 23, 2011 at 3:22 AM, Nick Mathewson wrote: > Hi, all! > > I'm hoping to put out a bugfix release on the libevent 2.0 series this > coming week.  With that in mind, I've put up a "dev" release that > contains almost exactly what I'm hoping to put into the stable > release.  If there are

Re: [Libevent-users] http server and infinite streams

2011-04-26 Thread Nick Mathewson
On Tue, Apr 26, 2011 at 5:26 PM, Mark Ellzey wrote: [...] > While I support these types of changes, I often wonder if the better > solution to these problems is to gut the httpd API and create a more robust > and abstracted replacement. *prepares for flogging* > > Libevent's http API was created

Re: [Libevent-users] http server and infinite streams

2011-04-26 Thread Nick Mathewson
On Tue, Apr 26, 2011 at 1:49 PM, Cliff Frey wrote: > (apologies if this is a duplicate post) > > It might be clearer to just look at my patches and commit messages >    https://github.com/clifffrey/Libevent/commits/http_oom_prevention > But I've summarized my problems/fixes below.  Please let me k

Re: [Libevent-users] http server and infinite streams

2011-04-26 Thread Cliff Frey
> While I support these types of changes, I often wonder if the better > solution to these problems is to gut the httpd API and create a more robust > and abstracted replacement. *prepares for flogging* > > Libevent's http API was created for JIT services, not a apache/nginx/iis > replacement. But

[Libevent-users] Putting event on the top of the queue

2011-04-26 Thread Gordiychuck Oleg
Hello! I'm using event2 libs and i want to know if it is possible to put new event on the top of the queue. For example, i have next events queue: ev1 -> ev2 -> ev3 While processing ev1 an error occured. Now i want to create new event(err_ev) that will close all application's modules and i

Re: [Libevent-users] http server and infinite streams

2011-04-26 Thread Mark Ellzey
On Tue, Apr 26, 2011 at 10:49:46AM -0700, Cliff Frey wrote: > Also, a completely different bug: ?If you want to support potentially > infinite POST streams from clients (imagine that you wanted to > implement word-count as an http server, where they POST a document, > and you return the word count)

Re: [Libevent-users] http server and infinite streams

2011-04-26 Thread Jakub Paweł Głazik
2011/4/26 Cliff Frey : > To do this, I need to be able to get a callback when > evhttp_connection->bufev's write buffer is empty (or close to empty). > I could imagine an implementation where you can explicitly check the > length and explicitly get a callback when the length falls below some > thre

Re: [Libevent-users] http server and infinite streams

2011-04-26 Thread Brian O'Kelley
I second this... I hacked my local version to do this, then realized the application was depending on each chunk being newline-terminated (ie logically complete chunk). I suspect I'm not unique in this need, so we may want some way for the chunked callback to return the number of characters it used

[Libevent-users] http server and infinite streams

2011-04-26 Thread Cliff Frey
(apologies if this is a duplicate post) It might be clearer to just look at my patches and commit messages https://github.com/clifffrey/Libevent/commits/http_oom_prevention But I've summarized my problems/fixes below. Please let me know if you would rather I submit a github pull request, or a

[Libevent-users] Seeking advice on handling a -1 return value from bufferevent_write()

2011-04-26 Thread Francoeur, Joseph A.
Hello, I'm successfully using bufferevent_write() to send message frames that are handled by bufferevent_read().  However, I'd like to handle a possible return value of -1 in the most optimal way (meaning, give the application the best of chance of succeeding on a retry of bufferevent_write()).