Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 9475d527b3ea70f55b63d40c34dab542be3e695a 1 parent beb8c65
@godfat authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/webmock/http_lib_adapters/net_http.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.