diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-09 19:00:22 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-09 19:00:22 +0000 |
commit | 5e18d93e8f649c538f6b6b15e707791f748065b1 (patch) | |
tree | 22c7529c032617458a4b735b2cb7d735d6bf599c /lib | |
parent | f0258353c27a7d30a4fdc60bbee5f42cda1d5ca1 (diff) | |
download | ruby-5e18d93e8f649c538f6b6b15e707791f748065b1.tar.gz |
webrick: avoid needless wakeup from IO.select
Since r51231 ("webrick/server.rb: stop immediately"),
there is no need to poll on the @status change every
two seconds.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/webrick/server.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/webrick/server.rb b/lib/webrick/server.rb index fad53469c0..5e83b692db 100644 --- a/lib/webrick/server.rb +++ b/lib/webrick/server.rb @@ -167,7 +167,7 @@ module WEBrick while @status == :Running begin sp = shutdown_pipe[0] - if svrs = IO.select([sp, *@listeners], nil, nil, 2.0) + if svrs = IO.select([sp, *@listeners]) if svrs[0].include? sp # swallow shutdown pipe buf = String.new |