Comment on attachment 118426
Increase the retry interval to 5 seconds.
This breaks the timeout value given by the user. In open_message_ready() we'll do a ctx->timeout--; if we got a timeout error, so that we can retry. Instead of ctx->timeout--; there should be a ctx->timeout-=5 there, and along with that: make timeout a gint (not guint) and also don't do the (ctx->timeout) check, and instead do (ctx->timeout > 0)
Also, better #define RETRY_TIMEOUT_SECS 5 and use the symbol everywhere.
Comment on attachment 118426
Increase the retry interval to 5 seconds.
This breaks the timeout value given by the user. In open_message_ ready() we'll do a ctx->timeout--; if we got a timeout error, so that we can retry. Instead of ctx->timeout--; there should be a ctx->timeout-=5 there, and along with that: make timeout a gint (not guint) and also don't do the (ctx->timeout) check, and instead do (ctx->timeout > 0)
Also, better #define RETRY_TIMEOUT_SECS 5 and use the symbol everywhere.
Could you update the patch and retest?