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: 4095295281
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
|
def close
|
||||||
begin
|
begin
|
||||||
@io.close
|
@io.close
|
||||||
rescue IOError
|
rescue IOError, Errno::EBADF
|
||||||
Puma::Util.purge_interrupt_queue
|
Puma::Util.purge_interrupt_queue
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue