Permalink
Browse files

net_http.rb: StubSocket needs read_timeout for aws-sdk

Sorry that I failed to find out how to reproduce this in a simple
way without using aws-sdk, ending up with Net::WebMockNetBufferedIO
instead of StubSocket. aws-sdk is maintaining a connection pool which
is too complicated and I am tired of digging into it. Time to sleep...

Thanks!
  • Loading branch information...
1 parent beb8c65 commit 9475d527b3ea70f55b63d40c34dab542be3e695a @godfat committed Jan 16, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/webmock/http_lib_adapters/net_http.rb
@@ -184,6 +184,8 @@ def check_right_http_connection
class StubSocket #:nodoc:
+ attr_accessor :read_timeout
+
def initialize(*args)
end

0 comments on commit 9475d52

Please sign in to comment.