Skip to content

Commit

Permalink
We should retry shutdown on EINPROGRESS error. Fixes #3168. (#4433)
Browse files Browse the repository at this point in the history
Just like EAGAIN handling behavior but due to another reason.
  • Loading branch information
akzhan authored and ysbaddaden committed May 21, 2017
1 parent c87fc6d commit 503fc04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/openssl/ssl/socket.cr
Expand Up @@ -145,7 +145,9 @@ abstract class OpenSSL::SSL::Socket
# assume we're done
break
when Errno::EAGAIN
# Ignore, shutdown did not complete yet
# Ignore/retry, shutdown did not complete yet
when Errno::EINPROGRESS
# Ignore/retry, another operation not complete yet
else
raise e
end
Expand Down

0 comments on commit 503fc04

Please sign in to comment.