Actions
Feature #6088
closedAdd Net::ReadTimeout to distinguish which operation failed
Feature #6088:
Add Net::ReadTimeout to distinguish which operation failed
Description
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.
Files
Actions