Skip to content

Treat connection timeouts as connection failures in net-http adapter. - #438

Merged
technoweenie merged 1 commit into
lostisland:masterfrom
deseretbook:treat-open-timeout-as-connection-failure
Dec 7, 2014
Merged

Treat connection timeouts as connection failures in net-http adapter.#438
technoweenie merged 1 commit into
lostisland:masterfrom
deseretbook:treat-open-timeout-as-connection-failure

Conversation

@mike-bourgeous

Copy link
Copy Markdown
Contributor

This PR treats Net::OpenTimeout on newer 2.x versions of Ruby as a connection
failure, without changing the behavior on older versions of Ruby. This allows one
to distinguish between :open_timeout connection timeouts and :timeout request
timeouts.

@rusikf

rusikf commented Nov 24, 2014

Copy link
Copy Markdown

How to test this line of code?

technoweenie added a commit that referenced this pull request Dec 7, 2014
…tion-failure

Treat connection timeouts as connection failures in net-http adapter.
@technoweenie
technoweenie merged commit 13e1252 into lostisland:master Dec 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants