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:
parent
6d613b0c66
commit
42f50c257e
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue