1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/webrick/httpserver.rb (WEBrick::HTTPServer#run): should

break the loop if the socket reached to EOF. [ruby-talk:142285]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
gotoyuzo 2005-05-17 06:31:54 +00:00
parent 0b2defb077
commit 2866bd642f
2 changed files with 6 additions and 1 deletions

View file

@ -52,7 +52,7 @@ module WEBrick
timeout = 0 if @status != :Running
timeout -= 0.5
end
raise HTTPStatus::EOFError if timeout <= 0
raise HTTPStatus::EOFError if timeout <= 0 || sock.eof?
req.parse(sock)
res.request_method = req.request_method
res.request_uri = req.request_uri