[Libevent-users] evhttp: how to detect a client that closed the connection?

Frank Denis libevent at pureftpd.org
Mon Mar 3 12:29:51 EST 2008


  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,
  
--
Frank Denis - j [at] pureftpd.org
http://forum.manucure.info - http://www.manucure-pro.com - http://00f.net



More information about the Libevent-users mailing list