[nginx] SSL: lowered log level for WSAECONNABORTED errors on Windows.

Maxim Dounin mdounin at mdounin.ru
Fri Aug 16 16:21:18 UTC 2019


details:   https://hg.nginx.org/nginx/rev/2432a687e789
branches:  
changeset: 7560:2432a687e789
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Fri Aug 16 18:16:21 2019 +0300
description:
SSL: lowered log level for WSAECONNABORTED errors on Windows.

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.

diffstat:

 src/event/ngx_event_openssl.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff --git a/src/event/ngx_event_openssl.c b/src/event/ngx_event_openssl.c
--- a/src/event/ngx_event_openssl.c
+++ b/src/event/ngx_event_openssl.c
@@ -2814,6 +2814,9 @@ ngx_ssl_connection_error(ngx_connection_
     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


More information about the nginx-devel mailing list