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.

Methods

Included Modules

Logging

Attributes

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.

Public Instance methods

Allows this connection to be persistent.

Return true if this connection is allowed to stay open and be persistent.

Return true if the connection must be left open and ready to be reused for another request.

Get the connection ready to process a request.

Called when all data was received and the request is ready to be processed.

Called when data is received from the client.

IP Address of the remote client.

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.

Protected Instance methods

[Validate]