From a91193c322cb36f7490c039733dee7bd482dd4f2 Mon Sep 17 00:00:00 2001 From: des Date: Fri, 3 Jan 2003 02:45:10 +0000 Subject: Set auto-retry mode to avoid some spurious errors. Submitted by: Andre Albsmeier MFC after: 7 days --- lib/libfetch/common.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c index 1eff41d..43f0a5f 100644 --- a/lib/libfetch/common.c +++ b/lib/libfetch/common.c @@ -297,6 +297,7 @@ _fetch_ssl(conn_t *conn, int verbose) conn->ssl_meth = SSLv23_client_method(); conn->ssl_ctx = SSL_CTX_new(conn->ssl_meth); + SSL_CTX_set_mode(conn->ssl_ctx, SSL_MODE_AUTO_RETRY); conn->ssl = SSL_new(conn->ssl_ctx); if (conn->ssl == NULL){ -- cgit v1.1