0
@@ -64,22 +64,25 @@ module Thin
0
# Maximum number of seconds for incoming data to arrive before the connection
0
- def_delegators :
@backend, :timeout, :timeout=
0
+ def_delegators :
backend, :timeout, :timeout=
0
# Maximum number of file or socket descriptors that the server may open.
0
- def_delegators :
@backend, :maximum_connections, :maximum_connections=
0
+ def_delegators :
backend, :maximum_connections, :maximum_connections=
0
# Maximum number of connection that can be persistent at the same time.
0
# Most browser never close the connection so most of the time they are closed
0
# when the timeout occur. If we don't control the number of persistent connection,
0
# if would be very easy to overflow the server for a DoS attack.
0
- def_delegators :@backend, :maximum_persistent_connections, :maximum_persistent_connections=
0
+ def_delegators :backend, :maximum_persistent_connections, :maximum_persistent_connections=
0
+ # Allow using threads in the backend.
0
+ def_delegators :backend, :threaded?, :threaded=
0
# Address and port on which the server is listening for connections.
0
- def_delegators :
@backend, :host, :port
0
+ def_delegators :
backend, :host, :port
0
# UNIX domain socket on which the server is listening for connections.
0
- def_delegator :
@backend, :socket
0
+ def_delegator :
backend, :socket
0
def initialize(host_or_socket_or_backend, port=DEFAULT_PORT, app=nil, &block)
0
# Try to intelligently select which backend to use.
0
@@ -129,11 +132,12 @@ module Thin
0
raise ArgumentError, 'app required' unless @app
0
log ">> Thin web server (v#{VERSION::STRING} codename #{VERSION::CODENAME})"
0
debug ">> Debugging ON"
0
+ log ">> Threaded mode #{@backend.threaded? ? 'ON' : 'OFF'}"
0
log ">> Maximum connections set to #{@backend.maximum_connections}"
0
log ">> Listening on #{@backend}, CTRL+C to stop"
Comments
No one has commented yet.