Improved timeout handling
This commit is contained in:
parent
1cb3ed3788
commit
8871b96ab1
1 changed files with 1 additions and 0 deletions
|
@ -21,6 +21,7 @@ $ua = LWP::UserAgent->new(agent => 'Translingo Client 1.0');
|
||||||
use HTTP::Request::Common qw(POST);
|
use HTTP::Request::Common qw(POST);
|
||||||
|
|
||||||
$ua->cookie_jar({});
|
$ua->cookie_jar({});
|
||||||
|
$ua->timeout(10000);
|
||||||
|
|
||||||
my $req = POST 'http://translingo.cacert.org/login.php',
|
my $req = POST 'http://translingo.cacert.org/login.php',
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in a new issue