On Mon, Jan 14, 2013 at 5:52 PM,  <s...@free.fr> 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 can be solved with libevent. I couldn't be able to find 
> an example.
>

Hi, Steve!

It's not clear to me what you're actually trying to do.  You want to
have a bufferevent, try to do some operation on it, and if the
operation fails, retry later?  Right now, bufferevents don't support
retrying connections very well, but they should do okay if you first
setfd the fd to -1 before retrying the connection--or just make a new
bufferevent for each connection.

If you have a short example program you can post here, probably
somebody could help figuring out what's going on.  But without more
information, it's not easy to tell what the problem is.

-- 
Nick
***********************************************************************
To unsubscribe, send an e-mail to majord...@freehaven.net with
unsubscribe libevent-users    in the body.

Reply via email to