Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Commit

Permalink
Ruby 1.9.3 doesnt have keep_alive_timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
binarylogic committed Dec 8, 2016
1 parent 4c9c534 commit 0b607b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/timber/log_devices/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ class DeliveryError < StandardError; end
https.use_ssl = true
https.read_timeout = 30
https.ssl_timeout = 10
https.keep_alive_timeout = 60
if https.respond_to?(:keep_alive_timeout=)
https.keep_alive_timeout = 60
end
https.open_timeout = 10
end

Expand Down

0 comments on commit 0b607b6

Please sign in to comment.