]> gitweb.factorcode.org Git - factor.git/commitdiff
io.sockets.secure.openssl: don't throw on normal disconnect
authorDoug Coleman <doug.coleman@gmail.com>
Mon, 27 Dec 2021 17:20:27 +0000 (11:20 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Mon, 27 Dec 2021 17:20:27 +0000 (11:20 -0600)
basis/io/sockets/secure/openssl/openssl.factor

index 4a55bf3b2932e27e8d65fead43a674025041d5b5..c9e4f08f70d3d35242e5893576b5519d192400a0 100644 (file)
@@ -296,8 +296,8 @@ PRIVATE>
         { SSL_ERROR_SYSCALL [ ssl-error-syscall ] }
         { SSL_ERROR_SSL [ drop throw-ssl-error ] }
         ! https://stackoverflow.com/questions/50223224/ssl-read-returns-ssl-error-zero-return-but-err-get-error-is-0
-        ! we got disconnected
-        { SSL_ERROR_ZERO_RETURN [ f >>connected t >>terminated premature-close-error ] }
+        ! we got disconnected, not an error
+        { SSL_ERROR_ZERO_RETURN [ f >>connected t >>terminated drop f ] }
         { SSL_ERROR_WANT_ACCEPT [ drop +input+ ] }
     } case ;