Issue #6088 has been updated by mame (Yusuke Endoh).

Assignee changed from drbrain (Eric Hodel) to naruse (Yui NARUSE)


----------------------------------------
Feature #6088: Add Net::ReadTimeout to distinguish which operation failed
https://bugs.ruby-lang.org/issues/6088#change-25418

Author: drbrain (Eric Hodel)
Status: Assigned
Priority: Normal
Assignee: naruse (Yui NARUSE)
Category: lib
Target version: 2.0.0


This relates to #5765 which improves use of timeout in net/ and #6001 which introduces Net::HTTP::OpenTimeout.

This patch introduces Net::ReadTimeout as a subclass of Timeout::Error and raises it when a read operation takes too long.  Users may use this to distinguish between timeouts for reading and timeouts for connecting to a remote host.  For a read timeout the user may wish to retry the operation.


-- 
http://bugs.ruby-lang.org/