1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Expose closed? for use by the reactor. Fixes #835

This commit is contained in:
Evan Phoenix 2016-02-25 13:17:47 -08:00
parent 6d613b0c66
commit 42f50c257e

View file

@ -21,6 +21,7 @@ module Puma
class Client
include Puma::Const
extend Puma::Delegation
def initialize(io, env=nil)
@io = io
@ -57,6 +58,8 @@ module Puma
attr_accessor :remote_addr_header
forward :closed?, :@io
def inspect
"#<Puma::Client:0x#{object_id.to_s(16)} @ready=#{@ready.inspect}>"
end