qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Sim <g...@redhat.com>
Subject Re: C++ Version 0.20: Rescuing a failed connection
Date Mon, 07 Oct 2013 08:35:56 GMT
On 10/07/2013 08:27 AM, NeilOwens wrote:
> We used the debug code to resolve our issue.   Reinstantiating the
> connection, session and senders seems less reliable in this scenario than
> keeping everything constructed, and just reopening the connection object.  I
> don't know why letting the old objects go out of scope and creating them
> again didn't work.
>
> The next thing we're addressing is the connection time.  There is a fairly
> long timeout on the ::connect function.  Has anyone tried changing BSDSocket
> to do the set non-blocking -> connect -> select statement loop until socket
> is selected for write ->set non-blocking trick to reduce the timeout?

Have you tried setting a heartbeat? That should at least bound the 
connect time as it will give up if it doesn't connect within two 
heartbeat intervals. (That may of course not help, but just in case...)


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Mime
View raw message