1
0
Fork 0
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:
Patrik Ragnarsson 2021-11-06 12:13:44 +01:00 committed by GitHub
parent 8833ca4bda
commit bc37bcf5dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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