diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-07 03:55:25 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-07 03:55:25 +0000 |
commit | d2d9d6ef1764f5e2f0b2ae0f6a96230b4332d67d (patch) | |
tree | 82d669735e3686cb0d6c5810896c8dfe1b8548af /lib | |
parent | d29595ceeeea08d86d3ceeec07850d4e638ba3f8 (diff) |
merge revision(s) 45344: [Backport #9543]
* lib/gserver.rb: [DOC] Fixed typo in example by @stomar [Bug #9543]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@46746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gserver.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/gserver.rb b/lib/gserver.rb index 48770289f8..9877417fa0 100644 --- a/lib/gserver.rb +++ b/lib/gserver.rb @@ -37,7 +37,7 @@ require "thread" # super(port, *args) # end # def serve(io) -# io.puts(Time.now.to_s) +# io.puts(Time.now.to_i) # end # end # @@ -144,7 +144,7 @@ class GServer attr_reader :port # Host on which to bind, as a String attr_reader :host - # Maximum number of connections to accept at at ime, as a FixNum + # Maximum number of connections to accept at a time, as a FixNum attr_reader :maxConnections # IO Device on which log messages should be written attr_accessor :stdlog @@ -156,7 +156,7 @@ class GServer # Called when a client connects, if auditing is enabled. # - # +client+:: a TCPSocket instances representing the client that connected + # +client+:: a TCPSocket instance representing the client that connected # # Return true to allow this client to connect, false to prevent it. def connecting(client) @@ -192,7 +192,7 @@ class GServer # Called if #debug is true whenever an unhandled exception is raised. # This implementation simply logs the backtrace. # - # +detail+:: The Exception that was caught + # +detail+:: the Exception that was caught def error(detail) log(detail.backtrace.join("\n")) end @@ -212,9 +212,9 @@ class GServer # Create a new server # - # +port+:: the port, as a FixNum, on which to listen. + # +port+:: the port, as a FixNum, on which to listen # +host+:: the host to bind to - # +maxConnections+:: The maximum number of simultaneous connections to + # +maxConnections+:: the maximum number of simultaneous connections to # accept # +stdlog+:: IO device on which to log messages # +audit+:: if true, lifecycle callbacks will be called. See #audit |