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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.