mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Don't allow EINVAL to raise during SSL addr check
Closes #1564 Co-authored-by: hahmed <haroon.ahmed25@gmail.com>
This commit is contained in:
parent
895722ddc2
commit
70e381d853
1 changed files with 2 additions and 1 deletions
|
@ -237,7 +237,8 @@ module Puma
|
|||
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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue