[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [Libevent-users] bufferevent_write succeeds on a dead tcp connection
- To: libevent-users@xxxxxxxxxxxxx
- Subject: Re: [Libevent-users] bufferevent_write succeeds on a dead tcp connection
- From: Azat Khuzhin <a3at.mail@xxxxxxxxx>
- Date: Sat, 4 Mar 2017 17:08:14 +0300
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Sat, 04 Mar 2017 09:08:18 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=mvhF9U3OobSSF24MELflC1Z4twfcQdutRP9muFCSba4=; b=fWpyrsOJ97wis12i+E0JqVNaqSqVyNFfCvjB7iz/O9IA8G3+7feDOA3WHtU+ohzRMh uO4bg6bDj8Zn/8pGW0tuht3MJvCURLxjbdh8zbKAOOW1A2nVlgm1awHQIjGvUbawwIZ4 tTDWIrARpGSOVmXB6KOJknyZS2fdqjGSMj+9waz5pPjcY57DKdPDWFG2Li/RRQWf0V0F vRsWsPeC0/nhSrCytKArGBX50AdWRcG5OMjDDauNx7Hmx1Co0bmgWaN+Rcn9HUhQcwkt vaqZpprgtw8zft6gWdJqwM42d3t36Fpm7G3Z68+s7RakeGDnZNRgRvKUSsM7/3HShhrY +tMg==
- In-reply-to: <CA+VDgmNHTv-fw=e-2F-_TzLsWXRcbbSQWpxVEG_YK_KiHkER8Q@mail.gmail.com>
- References: <CA+VDgmMxKKLfhaCC4JrJNmuCjr4KYGN7YzpS5N4UryT2g9+1xQ@mail.gmail.com> <CAG5DWojWpBWbR5vOOk78ccm388ax9qi=d80FJFVnR1ucie-RAg@mail.gmail.com> <CA+VDgmNHTv-fw=e-2F-_TzLsWXRcbbSQWpxVEG_YK_KiHkER8Q@mail.gmail.com>
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
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.