Skip to content

Commit

Permalink
Don't allow EINVAL to raise during SSL addr check
Browse files Browse the repository at this point in the history
Closes #1564

Co-authored-by: hahmed <haroon.ahmed25@gmail.com>
  • Loading branch information
nateberkopec and hahmed committed Oct 7, 2019
1 parent 895722d commit 70e381d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/puma/reactor.rb
Expand Up @@ -237,7 +237,8 @@ def run_internal
ssl_socket = c.io
begin
addr = ssl_socket.peeraddr.last
rescue IOError
# EINVAL can happen when browser closes socket w/security exception
rescue IOError, Errno::EINVAL
addr = "<unknown>"
end

Expand Down

0 comments on commit 70e381d

Please sign in to comment.