[Libevent-users] evhttp: how to detect a client that closed the
connection?
Ted Bullock
tbullock at canada.com
Tue Mar 4 01:16:27 EST 2008
Frank Denis wrote:
> Hello,
>
> Does anyone know if there is a way with evhttp to trigger a callback when
> a client drops the connection, and without waiting for a timeout?
>
> The close callback is properly called after evhttp_send_reply() sent
> something. But if the client drops the connection after it has been accepted
> and before the reply, it looks like no callback is called.
>
> Is there a clean way to work around this, or is it a bug?
>
> Best regards,
Yeah, I'd like to see an answer to this too.
I have been working on porting httperf to libevent, and this is one of
the issues that has come up.
Thanks,
-Ted
--
Theodore Bullock, <tbullock at canada.com, tedbullock at gmail.com>
B.Sc Software Engineering
Bike Across Canada Adventure http://www.comlore.com/bike
More information about the Libevent-users
mailing list