]> git.kaiwu.me - nginx.git/commitdiff
SSL: lowered log level for WSAECONNABORTED errors on Windows.
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 16 Aug 2019 15:16:21 +0000 (18:16 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 16 Aug 2019 15:16:21 +0000 (18:16 +0300)
Winsock uses ECONNABORTED instead of ECONNRESET in some cases.
For non-SSL connections this is already handled since baad3036086e.

Reported at
http://mailman.nginx.org/pipermail/nginx-ru/2019-August/062363.html.

src/event/ngx_event_openssl.c

index e591e4450368fc38ccbf380fde7eeb101bc404b7..3737839d8e0a1e53eb6880725f6b05e4a021b4e4 100644 (file)
@@ -2814,6 +2814,9 @@ ngx_ssl_connection_error(ngx_connection_t *c, int sslerr, ngx_err_t err,
     if (sslerr == SSL_ERROR_SYSCALL) {
 
         if (err == NGX_ECONNRESET
+#if (NGX_WIN32)
+            || err == NGX_ECONNABORTED
+#endif
             || err == NGX_EPIPE
             || err == NGX_ENOTCONN
             || err == NGX_ETIMEDOUT