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

Re: [Libevent-users] bufferevent_write succeeds on a dead tcp connection



On Sat, Mar 4, 2017 at 2:40 PM, prashantkumar dhotre
<prashantkumardhotre@xxxxxxxxx> wrote:
> EOF and error event will be set if remote has performed shutdown. In my case
> remote machine suddenly went down so my client did not get any pkts.

Right, but you can use the same for write() (by writing something,
ping) and/or take a look at SO_KEEPALIVE.

  Azat.
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.