Decrease connection timeout on USPS shipping drivers. Fixes bug #11374

This commit is contained in:
Colin Kuskie 2010-01-26 10:55:39 -08:00
parent 5a346afd9e
commit bfa862b80d
3 changed files with 3 additions and 0 deletions

View file

@ -4,6 +4,7 @@
- fixed #11371: Spaces in the names of custom profile fields
- fixed #11372: All Search Forms should use GET
- fixed #11373: Problem creating FilePump bundles
- fixed #11374: USPS shipping drivers take 3 minutes to timeout
7.8.10
- fixed #11332: Pagination in webgui.org forum urls

View file

@ -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);

View file

@ -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);