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:
parent
0b2defb077
commit
2866bd642f
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue