diff options
| author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-16 09:46:00 +0000 |
|---|---|---|
| committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-16 09:46:00 +0000 |
| commit | 0fb0096ffd3e07d9da2bb35954d5d6c9a4e27cce (patch) | |
| tree | a922076933dcd0f14a46358c0a7c39a41ed42f89 /lib/webrick/server.rb | |
| parent | 415bd361ca29a2f227a287df758fad27b6e89b26 (diff) | |
| download | ruby-0fb0096ffd3e07d9da2bb35954d5d6c9a4e27cce.tar.gz ruby-0fb0096ffd3e07d9da2bb35954d5d6c9a4e27cce.tar.xz ruby-0fb0096ffd3e07d9da2bb35954d5d6c9a4e27cce.zip | |
* lib/webrick/httpserver.rb (WEBrick::HTTPServer#run): should wait
for reading request till data arrive. [ruby-talk:121068]
* lib/webrick/server.rb (WEBrick::GenericServer#start_thread):
should log about all accepted socket. [ruby-core:03962]
* lib/webrick/accesslog.rb (WEBrick::AccessLog#setup_params):
"%%" and "%u" are supported. [webricken:135]
* lib/webrick/httpservlet/filehandler.rb
(WEBrick::HTTPServlet::FileHandler#check_filename):
:NondisclosureName is acceptable if it is Enumerable.
* lib/webrick/config.rb (WEBrick::Config::FileHandler):
default value of :NondisclosureName is [".ht*", "*~"].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick/server.rb')
| -rw-r--r-- | lib/webrick/server.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/webrick/server.rb b/lib/webrick/server.rb index 93e3b2ccf..bc0ad97c8 100644 --- a/lib/webrick/server.rb +++ b/lib/webrick/server.rb @@ -144,8 +144,13 @@ module WEBrick Thread.start{ begin Thread.current[:WEBrickSocket] = sock - addr = sock.peeraddr - @logger.debug "accept: #{addr[3]}:#{addr[1]}" + begin + addr = sock.peeraddr + @logger.debug "accept: #{addr[3]}:#{addr[1]}" + rescue SocketError + @logger.debug "accept: <address unknown>" + raise + end call_callback(:AcceptCallback, sock) block ? block.call(sock) : run(sock) rescue Errno::ENOTCONN |
