Wise monks,
I’m trying to use a script that sends a SOAP::LITE request over HTTPS. The script was written by a colleague, and while I have a bit of perl experience I have no SOAP or HTTPS apart from reading up the past few days. The script make one SOAP::LITE request to a server, hangs for 60 seconds and then continues as expected with an expected response. It appears the SOAP::LITE request hangs until the connection is reset by the server (causing a 60 sec delay between making the request and being able to process the response).
I have confirmed that the server response quickly to the request and then the script hangs until the reset is received using tcpdump.
Here is a sanitized version of the code. Hopefully there is enough to give an idea what it is doing...
#!perl -w use Net::SSL; use SOAP::Lite; $SOAP::Constants::DO_NOT_USE_CHARSET = 1; use XML::LibXML; my ($function, @params) = @ARGV; $ENV{HTTPS_CERT_FILE} = "./xxxxx.crt"; $ENV{HTTPS_KEY_FILE} = "./xxxxx.key"; my $sitetoken= SOAP::Header->name( CODE REMOVED ); my $ppsoapheader=SOAP::Header->name( CODE REMOVED ); my $auth = SOAP::Header->name( CODE REMOVED ); my $namespace = SOAP::Data->new( CODE REMOVED ); $soap_response = SOAP::Lite -> uri('http://schemas.xxxxx.com/Passport/SoapServices/CredentialSer +viceAPI/V1') -> proxy('https://api.login.yyyyy.com/pksecure/PPSACredentialPK.srf' +) -> GetEDUMigrationData($namespace, $ppsoapheader, $auth);
Wise monks, any ideas why this is hanging until the server reset is received?
In reply to SOAP::Lite client request over HTTPS hangs until connection is reset by server by kiteboy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |