https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17097754782015-11-20T21:42:27ZRuby Issue Tracking SystemRuby master - Feature #10674: Net::HTTP retries idempotent requests once after a timeout, but its not configurablehttps://bugs.ruby-lang.org/issues/10674?journal_id=550152015-11-20T21:42:27Zshulmang (Garett Shulman)garett.shulman@gmail.com
<ul></ul><p>I can confirm this exact behavior on 2.1.7</p> Ruby master - Feature #10674: Net::HTTP retries idempotent requests once after a timeout, but its not configurablehttps://bugs.ruby-lang.org/issues/10674?journal_id=648062017-05-14T11:51:02Zcben (Beni Cherniavsky-Paskin)cben@redhat.com
<ul></ul><p>Can confirm on 2.4.1.<br>
The responsible code is here: <a href="https://github.com/ruby/ruby/blob/v2_4_1/lib/net/http.rb#L1468" class="external">https://github.com/ruby/ruby/blob/v2_4_1/lib/net/http.rb#L1468</a><br>
I'm thinking of making a simple patch adding a boolean "#retry=". Application or higher-level gems can then implement any retry logic...</p> Ruby master - Feature #10674: Net::HTTP retries idempotent requests once after a timeout, but its not configurablehttps://bugs.ruby-lang.org/issues/10674?journal_id=657902017-07-14T08:51:07Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li><li><strong>Assignee</strong> changed from <i>drbrain (Eric Hodel)</i> to <i>naruse (Yui NARUSE)</i></li></ul> Ruby master - Feature #10674: Net::HTTP retries idempotent requests once after a timeout, but its not configurablehttps://bugs.ruby-lang.org/issues/10674?journal_id=669342017-09-26T14:00:37Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li></ul><p>Applied in changeset trunk|r60035.</p>
<hr>
<p>Make retries for Net::HTTP configurable [Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Net::HTTP retries idempotent requests once after a timeout, but its not configurable (Closed)" href="https://bugs.ruby-lang.org/issues/10674">#10674</a>]</p>
<p>by stereobooster<br>
fix <a href="https://github.com/ruby/ruby/pull/1654" class="external">https://github.com/ruby/ruby/pull/1654</a></p>