Class | Thin::Connection |
In: |
lib/thin/connection.rb
|
Parent: | EventMachine::Connection |
Connection between the server and client. This class is instanciated by EventMachine on each new connection that is opened.
app | [RW] | Rack application (adapter) served by this connection. |
backend | [RW] | Backend to the server |
request | [RW] | Current request served by the connection |
response | [RW] | Next response sent through the connection |
threaded | [W] | Calling the application in a threaded allowing concurrent processing of requests. |
true if app.call will be called inside a thread. You can set all requests as threaded setting Connection#threaded=true or on a per-request case returning true in app.deferred?.
Called when the connection is unbinded from the socket and can no longer be used to process requests.