summaryrefslogtreecommitdiff
path: root/lib/webrick/server.rb
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-09 19:00:22 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-09 19:00:22 +0000
commit4c6335e93bfdb9d09218e9669904e32a902a27b5 (patch)
tree22c7529c032617458a4b735b2cb7d735d6bf599c /lib/webrick/server.rb
parent310e91f505b6d1658fde8beb17861180aedca6c8 (diff)
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/webrick/server.rb')
-rw-r--r--lib/webrick/server.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/webrick/server.rb b/lib/webrick/server.rb
index fad5346..5e83b69 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