diff options
| author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-19 06:00:36 +0000 |
|---|---|---|
| committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-19 06:00:36 +0000 |
| commit | 4307f96f86f3b77b23f477488b779ee2b74a9d61 (patch) | |
| tree | eedc2d207ffde1876c9d7271f8492741ee065584 /lib/webrick/httpserver.rb | |
| parent | 4a49c6555a441ff2bfd0ac63608db2153a9fab7e (diff) | |
| download | ruby-4307f96f86f3b77b23f477488b779ee2b74a9d61.tar.gz ruby-4307f96f86f3b77b23f477488b779ee2b74a9d61.tar.xz ruby-4307f96f86f3b77b23f477488b779ee2b74a9d61.zip | |
* lib/webrick/ssl.rb: new file; SSL/TLS enhancement for GenericServer.
* lib/webrick/https.rb: SSLSocket handling is moved to webrick/ssl.rb.
* lib/webrick/compat.rb (File::fnmatch): remove old migration code.
* lib/webrick/httpserver.rb (HTTPServer#run): ditto.
* lib/webrick/server.rb (GenericServer#listen): the body of this
method is pull out as Utils::create_lisnteners.
* lib/webrick/utils.rb (Utils::create_lisnteners): new method.
* lib/webrick/server.rb (GenericServer#start): should not
through unknown errors. and refine comments.
* ext/openssl/lib/openssl/ssl.rb (SSLServer#accept): should close
socket if SSLSocket raises error.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/webrick/httpserver.rb')
| -rw-r--r-- | lib/webrick/httpserver.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/webrick/httpserver.rb b/lib/webrick/httpserver.rb index df06e19e2..a3da99db1 100644 --- a/lib/webrick/httpserver.rb +++ b/lib/webrick/httpserver.rb @@ -58,7 +58,7 @@ module WEBrick res.set_error(ex) rescue HTTPStatus::Status => ex res.status = ex.code - rescue StandardError, NameError => ex # for Ruby 1.6 + rescue StandardError => ex @logger.error(ex) res.set_error(ex, true) ensure |
