mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Rescue Errno::EBADF
in Client#close
(#2748)
Spotted happening in CI: https://github.com/puma/puma/runs/4095295281?check_suite_focus=true 2021-11-03 16:34:54 +0000 Exception handling servers: #<Errno::EBADF: Bad file descriptor>/Users/runner/work/puma/puma/lib/puma/client.rb:163:in `close': Bad file descriptor (Errno::EBADF) TestRackServer#test_large_post_body = from /Users/runner/work/puma/puma/lib/puma/client.rb:163:in `close'
This commit is contained in:
parent
8833ca4bda
commit
bc37bcf5dc
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ module Puma
|
|||
def close
|
||||
begin
|
||||
@io.close
|
||||
rescue IOError
|
||||
rescue IOError, Errno::EBADF
|
||||
Puma::Util.purge_interrupt_queue
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue