thaljef / Pinto

Curate your own repository of Perl modules
https://metacpan.org/module/Pinto::Manual
66 stars 49 forks source link

Allow specifying a read timeout on the Pinto HTTP user agent #234

Open fgabolde opened 7 years ago

fgabolde commented 7 years ago

We have a large-ish Pinto set up, large enough that this:

pinto pull --dry-run -v Some::Module==0.123

ends up timing out after 3 minutes with

read timeout at /home/fgabolde/opt/local/pinto/lib/perl5/Net/HTTP/Methods.pm line 259.

It looks like that's the default timeout on LWP::UserAgent which Pinto::Remote::* uses behind the scenes.

Would it be possible to make this value configurable?

thaljef commented 7 years ago

I'll add an environment variable for it.