https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112012-01-20T14:56:37ZRuby Issue Tracking SystemRuby master - Bug #5813: net/http's EOFError and Keep-Alivehttps://bugs.ruby-lang.org/issues/5813?journal_id=233732012-01-20T14:56:37Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li></ul><p>This issue was solved with changeset r34341.<br>
Yui, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<ul>
<li>
<p>lib/net/http.rb (Net::HTTP#transport_request): retry a idempotent<br>
request automatically. <a href="/issues/5790">[ruby-dev:45030]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: net/http の EOFError と Keep-Alive (Closed)" href="https://bugs.ruby-lang.org/issues/5790">#5790</a>]<br>
<a href="/issues/5813">[ruby-core:41821]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: net/http's EOFError and Keep-Alive (Closed)" href="https://bugs.ruby-lang.org/issues/5813">#5813</a>]</p>
</li>
<li>
<p>lib/net/http.rb (Net::HTTP#keep_alive_timeout=): added to specify<br>
the second to reconnect the TCP connection on Keep-Alive.<br>
The default value is 2 second because current servers uses 2 sec.<br>
<a href="http://ftp-admin.blogspot.com/2009/09/keepalivetimeout2.html" class="external">http://ftp-admin.blogspot.com/2009/09/keepalivetimeout2.html</a></p>
</li>
<li>
<p>lib/net/http.rb (Net::HTTP#begin_transport): reconnect TCP<br>
connection on keep-alive timeout.</p>
</li>
</ul>