Decrease connection timeout on USPS shipping drivers. Fixes bug #11374
This commit is contained in:
parent
5a346afd9e
commit
bfa862b80d
3 changed files with 3 additions and 0 deletions
|
|
@ -396,6 +396,7 @@ sub _doXmlRequest {
|
|||
my $userAgent = LWP::UserAgent->new;
|
||||
$userAgent->env_proxy;
|
||||
$userAgent->agent('WebGUI');
|
||||
$userAgent->timeout('45');
|
||||
my $url = 'http://production.shippingapis.com/ShippingAPI.dll?API=RateV3&XML=';
|
||||
$url .= $xml;
|
||||
my $request = HTTP::Request->new(GET => $url);
|
||||
|
|
|
|||
|
|
@ -352,6 +352,7 @@ sub _doXmlRequest {
|
|||
my $userAgent = LWP::UserAgent->new;
|
||||
$userAgent->env_proxy;
|
||||
$userAgent->agent('WebGUI');
|
||||
$userAgent->timeout('45');
|
||||
my $url = 'http://production.shippingapis.com/ShippingAPI.dll?API=IntlRate&XML=';
|
||||
$url .= $xml;
|
||||
my $request = HTTP::Request->new(GET => $url);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue