Commit 488c0005 authored by Sebastien Decugis's avatar Sebastien Decugis
Browse files

Fix handling of long network failures

parent 80e617b0
......@@ -680,6 +680,9 @@ again:
case GNUTLS_E_INTERRUPTED:
if (!conn->cc_closing)
goto again;
TRACE_DEBUG(INFO, "Connection is closing, so abord gnutls_record_recv now.");
ret = 0;
break;
default:
TRACE_DEBUG(INFO, "This TLS error is not handled, assume unrecoverable error");
......
......@@ -665,8 +665,11 @@ psm_loop:
CHECK_FCT_DO( fd_p_cnx_init(peer), goto psm_end );
goto psm_loop;
case STATE_CLOSING:
case STATE_SUSPECT:
/* Mark the connection problem */
peer->p_flags.pf_cnx_pb = 1;
case STATE_CLOSING:
case STATE_WAITCNXACK:
case STATE_WAITCEA:
/* Destroy the connection, restart the timer to a new connection attempt */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment