lib/httpi/adapter/net_http_persistent.rb in httpi-2.4.3 vs lib/httpi/adapter/net_http_persistent.rb in httpi-2.4.4
- old
+ new
@@ -30,9 +30,10 @@
raise NotSupportedError, "Net::HTTP-Persistent does not support NTLM authentication"
end
@client.open_timeout = @request.open_timeout if @request.open_timeout
@client.read_timeout = @request.read_timeout if @request.read_timeout
+ raise NotSupportedError, "Net::HTTP::Persistent does not support write_timeout" if @request.write_timeout
end
def thread_key
@request.url.host.split(/\W/).reject{|p|p == ""}.join('-')
end