Permalink
Browse files

Revert "defer setting up connection until needed"

This reverts commit 7a6f536.

new connections in same thread get EOFError without this
  • Loading branch information...
1 parent 3e6d51e commit c9516ec6b3be51a2219c5a1a81d1dbdf207c0c8b @geemus geemus committed Mar 24, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/excon/connection.rb
View
@@ -28,6 +28,7 @@ def initialize(url, params = {})
}.merge!(params)
@socket_key = '' << @connection[:host] << ':' << @connection[:port].to_s
+ reset
end
# Sends the supplied request to the destination host.

0 comments on commit c9516ec

Please sign in to comment.