aboutsummaryrefslogtreecommitdiffstats
path: root/lib/webrick/httpresponse.rb
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-04 00:12:14 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-04 00:12:14 +0000
commit8e1714488ae78589741991ba7cc72b1c9e3e4028 (patch)
treeb6b13564030628640e7026271b47e878891a4c9c /lib/webrick/httpresponse.rb
parentdc9603bd5c6b9618e1f4aa8a48c020c56425366f (diff)
downloadruby-8e1714488ae78589741991ba7cc72b1c9e3e4028.tar.gz
* lib/webrick/server.rb (GenericServer#start): should rescue
Exception to avoid unexpected aborting. [ruby-core:01853] * lib/webrick/server.rb (GenericServer#start_thread): should check that peeraddr isn't nil before printing. * lib/webrick/httpresponse.rb (HTTPResponse#start_thread): should rescue Exception to avoid unexpected aborting of thread. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick/httpresponse.rb')
-rw-r--r--lib/webrick/httpresponse.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/webrick/httpresponse.rb b/lib/webrick/httpresponse.rb
index 667c4c46cd..9d6e5522ed 100644
--- a/lib/webrick/httpresponse.rb
+++ b/lib/webrick/httpresponse.rb
@@ -84,10 +84,10 @@ module WEBrick
setup_header()
send_header(socket)
send_body(socket)
- rescue Errno::EPIPE
- @logger.error("HTTPResponse#send_response: EPIPE occured.")
+ rescue Errno::EPIPE, Errno::ECONNRESET, Errno::ENOTCONN => ex
+ @logger.debug(ex)
@keep_alive = false
- rescue => ex
+ rescue Exception => ex
@logger.error(ex)
@keep_alive = false
end