Method: Thin::Connection#receive_data

Defined in:
lib/thin/connection.rb

#receive_data(data) ⇒ Object

Called when data is received from the client.



38
39
40
41
42
43
44
45
# File 'lib/thin/connection.rb', line 38

def receive_data(data)
  @idle = false
  trace data
  process if @request.parse(data)
rescue InvalidRequest => e
  log_error("Invalid request", e)
  post_process Response::BAD_REQUEST
end