1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/webrick
normal 22474d8f96 webrick: allow shutdown after StartCallback
We must to ensure the @status ivar is set to :Running before
running StartCallback, otherwise Webrick::Server#stop will not
change the @status to :Shutdown properly.

Note: I have not been able to reproduce the original issue but
understood at least part of the problem and fixed it with this
commit.  However, the original reporter (Peak Xu) was still able
to reproduce the problem on 1.9.2 p180 on Windows, so I'm not
sure what else might be going on.  Ruby threading and
synchronization primitives have changed a lot since 1.9.2, so
maybe that was fixed elsewhere.

* lib/webrick/server.rb: call StartCallback sooner [Bug ]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-08 18:51:56 +00:00
..
httpauth
httpservlet Remove unnecessary require 'thread' 2017-10-08 07:00:01 +00:00
accesslog.rb
cgi.rb
compat.rb
config.rb
cookie.rb
htmlutils.rb
httpauth.rb
httpproxy.rb webrick: handle EAGAIN/EWOULDBLOCK on proxy connections 2017-09-19 08:39:22 +00:00
httprequest.rb
httpresponse.rb webrick/httpresponse: minor cleanups to reduce memory use 2017-10-31 01:37:37 +00:00
https.rb webrick: fix SNI support 2017-07-18 01:59:28 +00:00
httpserver.rb
httpservlet.rb
httpstatus.rb lib/webrick/log.rb: sanitize any type of logs 2017-09-14 11:16:23 +00:00
httputils.rb Define the MIME type for JSON in WEBrick::HTTPUtils::DefaultMimeTypes. 2017-09-19 01:54:28 +00:00
httpversion.rb
log.rb lib/webrick/log.rb: sanitize any type of logs 2017-09-14 11:16:23 +00:00
server.rb webrick: allow shutdown after StartCallback 2017-12-08 18:51:56 +00:00
ssl.rb webrick: fix SNI support 2017-07-18 01:59:28 +00:00
utils.rb Remove unnecessary require 'thread' 2017-10-08 07:00:01 +00:00
version.rb Merge gemspec from ruby/webrick. 2017-05-01 10:20:35 +00:00
webrick.gemspec Fixed invalid gemspec. 2017-10-05 01:43:47 +00:00