<h3 dir="auto">Description</h3>
<p dir="auto">Configure Faraday’s <code class="notranslate">open_timeout</code> so that when a connection cannot be established, the request fails quickly instead of waiting for the full response timeout. See the Faraday docs <a href="https://lostisland.github.io/faraday/#/customization/request-options?id=request-options" rel="nofollow">here</a> for details.</p>
<p dir="auto">Todo:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" aria-label="Incomplete task"> write tests</li>
</ul>
<h3 dir="auto">How has this been tested?</h3>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/6573'>https://github.com/openstreetmap/openstreetmap-website/pull/6573</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6573/commits/3c95dbbf354c949cd9113a287aff610aa041b027" class="commit-link">3c95dbb</a> Add early timeout when connection cannot be established</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6573/files">1 file</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6573/files#diff-f8a27e50423ab8e432a0ac66073c425c0c4eb520ecd92bf152b21e6e966b4754">lib/osm.rb</a>
(2)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6573.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/6573.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6573.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/6573.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6573">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJREDDFLJCSK6UE46D37NRTHAVCNFSM6AAAAACNTUHET2VHI2DSMVQWIX3LMV43ASLTON2WKOZTGY3TQNBXGMYDMMY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLIOVKZT7PNOPF6ZQAT37NRTHA5CNFSM6AAAAACNTUHET2WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHNWQILM4.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/6573</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/6573",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6573",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>