[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



2011/4/26 Cliff Frey <cliff@xxxxxxxxxx>:
> 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
> threshold.  Another option is to change write_chunk to make a callback
> when the write buffer is completely empty.  This is what I
> implemented, but I am open to other suggestions.

I had similar issue, hacked my version of libevent so I can get output
buffer length, would love to see it in upstream version of libevent.

-- 
.: Jakub Paweł Głazik,
.: email & jabber: zytek<at>nuxi.pl
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.