Skip to content

Commit

Permalink
Merge pull request #286 from liamseanbrady/fix_typos_and_phrasing
Browse files Browse the repository at this point in the history
Fix pluralization and typos in docs
  • Loading branch information
macournoyer committed Oct 19, 2015
2 parents 0770aa0 + 0960424 commit b69057d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lib/thin/server.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module Thin
# The uterly famous Thin HTTP server.
# It listen for incoming request through a given +backend+
# and forward all request to +app+.
# The utterly famous Thin HTTP server.
# It listens for incoming requests through a given +backend+
# and forwards all requests to +app+.
#
# == TCP server
# Create a new TCP server on bound to <tt>host:port</tt> by specifiying +host+
# Create a new TCP server bound to <tt>host:port</tt> by specifiying +host+
# and +port+ as the first 2 arguments.
#
# Thin::Server.start('0.0.0.0', 3000, app)
Expand All @@ -18,12 +18,12 @@ module Thin
#
# == Using a custom backend
# You can implement your own way to connect the server to its client by creating your
# own Backend class and pass it as the :backend option.
# own Backend class and passing it as the :backend option.
#
# Thin::Server.start('galaxy://faraway', 1345, app, :backend => Thin::Backends::MyFancyBackend)
#
# == Rack application (+app+)
# All requests will be processed through +app+ that must be a valid Rack adapter.
# All requests will be processed through +app+, which must be a valid Rack adapter.
# A valid Rack adapter (application) must respond to <tt>call(env#Hash)</tt> and
# return an array of <tt>[status, headers, body]</tt>.
#
Expand Down Expand Up @@ -76,10 +76,10 @@ class Server
# Maximum number of file or socket descriptors that the server may open.
def_delegators :backend, :maximum_connections, :maximum_connections=

# Maximum number of connection that can be persistent at the same time.
# Most browser never close the connection so most of the time they are closed
# when the timeout occur. If we don't control the number of persistent connection,
# if would be very easy to overflow the server for a DoS attack.
# Maximum number of connections that can be persistent at the same time.
# Most browsers never close the connection so most of the time they are closed
# when the timeout occurs. If we don't control the number of persistent connections,
# it would be very easy to overflow the server for a DoS attack.
def_delegators :backend, :maximum_persistent_connections, :maximum_persistent_connections=

# Allow using threads in the backend.
Expand Down Expand Up @@ -166,7 +166,7 @@ def start
# == Gracefull shutdown
# Stops the server after processing all current connections.
# As soon as this method is called, the server stops accepting
# new requests and wait for all current connections to finish.
# new requests and waits for all current connections to finish.
# Calling twice is the equivalent of calling <tt>stop!</tt>.
def stop
if running?
Expand Down

0 comments on commit b69057d

Please sign in to comment.