Class: Hookout::ThinConnection
- Inherits:
-
Thin::Connection
- Object
- Thin::Connection
- Hookout::ThinConnection
- Defined in:
- lib/hookout/thin_backend.rb
Instance Attribute Summary collapse
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#rhttp_req ⇒ Object
Returns the value of attribute rhttp_req.
Instance Method Summary collapse
- #close_connection_after_writing ⇒ Object
- #comm_inactivity_timeout=(timeout) ⇒ Object
- #persistent? ⇒ Boolean
- #send_data(data) ⇒ Object
Instance Attribute Details
#backend ⇒ Object
Returns the value of attribute backend.
46 47 48 |
# File 'lib/hookout/thin_backend.rb', line 46 def backend @backend end |
#rhttp_req ⇒ Object
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_writing ⇒ Object
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
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 |