[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] detected a bad network connection for a TCP connection
- To: libevent-users@xxxxxxxx
- Subject: [Libevent-users] detected a bad network connection for a TCP connection
- From: Ivan Novick <novickivan@xxxxxxxxx>
- Date: Mon, 7 Feb 2011 14:15:59 -0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Mon, 07 Feb 2011 17:16:04 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=0MpPWljgMuOyz8kDR66d1oiSKn5O2871XZ67flLLhLQ=; b=DPcbPS9tm14Ug7y6XRt9zJ/fjQXyjnpUDeeTGv89+EiM6gTgCIaILdrz2ISHE3QMgu hCJqwujgH4ngZYKlnAEZmRXeU+kfazTsImB693Au+MSvLYrej66ga7UJ2j2wG5ysc2Zp 1L1RzPqoxPTEi0dqO67vntKlXxzPHZa7nQKj4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=JwSgTAPXUKiDeuoQwN5ZusH2V8K7EZFd1qAhtHf0fWTdzvxfvWjz21tc+LdSKfMB3l BujPy0rJBmQ3hM/493m/7eYZaZm/swcI6/7EKI8FV9Un/cTb9IksGOWT9EAR+wholiV/ ++A+BcSKcO78WyJSjxQfdX3RHzHMUZ8aSGVSU=
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
Hello,
I am testing fault tolerance in my application that is written using
libevent-1.4.6
The application has a client and server connecting over TCP
and the event is setup like this on the client:
event_set(event, sock, EV_READ | EV_PERSIST, recv_from_server, h);
Then I login to the server and bring down the network interface like this:
ifconfig eth3 down.
libevent on the client does not seem to generate any event for me to
detect that the network connection is down.
If I was coding all this by hand, without libevent, I would expect to
be able to detect a disconnection from the socket.
Do you know how I can detect the disconnection caused by bringing down
the interface on the server ... while still using libevent?
Thanks!
Cheers,
Ivan Novick
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.