diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-11 20:28:11 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-11 20:28:11 +0000 |
commit | 8c5c5a221f3bd3b0bdf6304b924630c35c7f8631 (patch) | |
tree | 7081865471aecf1d43b45f47c094be8a36168088 /test/net | |
parent | 2fe9d4642e4e68538112ea6045cc9a456d7a67b5 (diff) | |
download | ruby-8c5c5a221f3bd3b0bdf6304b924630c35c7f8631.tar.gz |
* lib/webrick/server.rb (module WEBrick::GenericServer): A server
will now continue only when a StandardError subclass is raised. For
other exception types the error will be logged at the fatal level and
the server will safely stop. Based on a patch by Alex Young.
[ruby-trunk - Feature #6236]
* test/webrick/test_server.rb: Test for new exception handling
behavior. Join the server thread instead of busy-waiting for it to
shut down to remove race conditions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net')
0 files changed, 0 insertions, 0 deletions