conn_is_closed should return 1 if get_last_sys_error is WSAECONNRESET
authorPaul Monson <paulmon@microsoft.com>
Tue, 26 Mar 2019 22:25:19 +0000 (15:25 -0700)
committerMatt Caswell <matt@openssl.org>
Thu, 28 Mar 2019 10:28:20 +0000 (10:28 +0000)
CLA: trivial

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8590)

(cherry picked from commit 0b885f72c2b18c57173e134a03ed013cd1ac361e)

ssl/statem/statem_srvr.c

index 6b8aae62ccd835c3b5f718f1d6bee839ceeb8a2a..d454326a9971f5866ff6e32e06d2318c22662bbd 100644 (file)
@@ -774,6 +774,10 @@ static ossl_inline int conn_is_closed(void)
 #if defined(ECONNRESET)
     case ECONNRESET:
         return 1;
+#endif
+#if defined(WSAECONNRESET)
+    case WSAECONNRESET:
+        return 1;
 #endif
     default:
         return 0;