### Description
Configure Faraday’s `open_timeout` so that when a connection cannot be 
established, the request fails quickly instead of waiting for the full response 
timeout. See the Faraday docs 
[here](https://lostisland.github.io/faraday/#/customization/request-options?id=request-options)
 for details.

Todo:
- [ ] write tests

### How has this been tested?


You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/6573

-- Commit Summary --

  * Add early timeout when connection cannot be established

-- File Changes --

    M lib/osm.rb (2)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/6573.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6573.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6573
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to