p5-http-tiny icon indicating copy to clipboard operation
p5-http-tiny copied to clipboard

Set read timeout separately from connect timeout

Open FGasper opened this issue 8 years ago • 0 comments

Would it be feasible to introduce either of two changes:

  1. A read_timeout setting that defaults to the regular timeout but is used as an override when HTTP::Tiny::Handle is instantiated

  2. The ability to specify a class to use in place of HTTP::Tiny::Handle (which would allow implementors to subclass H::T::Handle to achieve a custom tiemout)

Right now the same timeout length is always used for the connect as for reads, though H::T::Handle accepts its own timeout and thus could accommodate a distinct value.

FGasper avatar Aug 10 '17 16:08 FGasper