Project

General

Profile

« Previous | Next » 

Revision d249be62

Added by naruse (Yui NARUSE) over 9 years ago

  • lib/net/http.rb (connect): detect closed connection and reconnect
    If the server closes a keep-alive http connection, the client socket
    reaches EOF. To avoid an EOFError, detect the closed connection and
    reconnect.
    Added test to ensure HTTP#post succeeds even if the
    keep-alive-connection has been closed by the server.
    by Kristian Hanekamp
    https://github.com/ruby/ruby/pull/1089 fix GH-1089

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e