Land #3184, Rex::Proto::Http::Client IOError fix

bug/bundler_fix
William Vu 2014-04-03 15:58:50 -05:00
commit 9779913060
No known key found for this signature in database
GPG Key ID: E761DCB4C1629024
2 changed files with 2 additions and 1 deletions

View File

@ -198,7 +198,7 @@ class Client
def close
if (self.conn)
self.conn.shutdown
self.conn.close
self.conn.close unless self.conn.closed?
end
self.conn = nil

View File

@ -112,6 +112,7 @@ describe Rex::Proto::Http::Client do
conn.stub(:put)
conn.stub(:shutdown)
conn.stub(:close)
conn.stub(:closed? => false)
conn.should_receive(:get_once).and_return(first_response, authed_response)
conn.should_receive(:put) do |str_request|