Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sentry-ruby/lib/sentry/transport/http_transport.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def conn

connection.use_ssl = server.scheme == "https"
connection.read_timeout = @transport_configuration.timeout
connection.write_timeout = @transport_configuration.timeout if connection.respond_to?(:write_timeout)
connection.write_timeout = @transport_configuration.timeout
connection.open_timeout = @transport_configuration.open_timeout

ssl_configuration.each do |key, value|
Expand Down
5 changes: 1 addition & 4 deletions sentry-ruby/spec/sentry/transport/http_transport_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,7 @@

sentry_stub_request(fake_response) do |_, http_obj|
expect(http_obj.read_timeout).to eq(10)

if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("2.6")
expect(http_obj.write_timeout).to eq(10)
end
expect(http_obj.write_timeout).to eq(10)
end

subject.send_data(data)
Expand Down
Loading