Class: Hookout::ThinConnection

Inherits:
Thin::Connection
  • Object
show all
Defined in:
lib/hookout/thin_backend.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#backendObject

Returns the value of attribute backend.



46
47
48
# File 'lib/hookout/thin_backend.rb', line 46

def backend
  @backend
end

#rhttp_reqObject

Returns the value of attribute rhttp_req.



45
46
47
# File 'lib/hookout/thin_backend.rb', line 45

def rhttp_req
  @rhttp_req
end

Instance Method Details

#close_connection_after_writingObject



60
61
62
63
64
65
66
# File 'lib/hookout/thin_backend.rb', line 60

def close_connection_after_writing
  begin
    @rhttp_req.close
  ensure
    @backend.connection_finished(self)
  end
end

#comm_inactivity_timeout=(timeout) ⇒ Object



52
53
54
# File 'lib/hookout/thin_backend.rb', line 52

def comm_inactivity_timeout=(timeout)
  # Ignore
end

#persistent?Boolean

Returns:

  • (Boolean)


48
49
50
# File 'lib/hookout/thin_backend.rb', line 48

def persistent?
  false
end

#send_data(data) ⇒ Object



56
57
58
# File 'lib/hookout/thin_backend.rb', line 56

def send_data(data)
  @rhttp_req.write(data)
end