Re: Re : [Libevent-users] libevent client tries to reconnect to a lost server

2013-01-14 Thread Sashan Govender
On Tue, Jan 15, 2013 at 9:52 AM, wrote: > It serms that this is not the way it should be done. The whole buffer > event should be removed and created again, until the server starts to > respond. Unfortunately this method causes a segmentation fault. I had no > idea of how such a simple problem ca

Re: Re : [Libevent-users] libevent client tries to reconnect to a lost server

2013-01-14 Thread Nick Mathewson
On Mon, Jan 14, 2013 at 5:52 PM, wrote: > It serms that this is not the way it should be done. The whole buffer event > should be removed and created again, until the server starts to respond. > Unfortunately this method causes a segmentation fault. I had no idea of how > such a simple problem

ReĀ : [Libevent-users] libevent client tries to reconnect to a lost server

2013-01-14 Thread ssod
It serms that this is not the way it should be done. The whole buffer event should be removed and created again, until the server starts to respond. Unfortunately this method causes a segmentation fault. I had no idea of how such a simple problem can be solved with libevent. I couldn't be able t

Re: [Libevent-users] libevent client tries to reconnect to a lost server

2013-01-13 Thread Yutong Wu
use getsocketopt to get socket error no or use tcpdump to check what happened 2013/1/13 > What I need : a libevent client which tries to reconnect periodically > after loosing connection with the server. > > To solve this problem I add evtimer that becomes active once the > connection with the s