Skip to content

Commit 503fc04

Browse files
akzhanysbaddaden
authored andcommittedMay 21, 2017
We should retry shutdown on EINPROGRESS error. Fixes #3168. (#4433)
Just like EAGAIN handling behavior but due to another reason.
1 parent c87fc6d commit 503fc04

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/openssl/ssl/socket.cr

+3-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ abstract class OpenSSL::SSL::Socket
145145
# assume we're done
146146
break
147147
when Errno::EAGAIN
148-
# Ignore, shutdown did not complete yet
148+
# Ignore/retry, shutdown did not complete yet
149+
when Errno::EINPROGRESS
150+
# Ignore/retry, another operation not complete yet
149151
else
150152
raise e
151153
end

0 commit comments

Comments
 (0)
Please sign in to comment.