Loading ...
Sorry, an error occurred while loading the content.

multithreaded perl, multi-cpu

Expand Messages
  • nicholas_toze
    Hi, I ve got a fairly simple perl script, something like this: my $client = SOAP::Lite- service($wsdl); $client- on_fault(...); $client- proxy($endpoint); my
    Message 1 of 1 , Feb 27, 2007
    • 0 Attachment
      Hi,

      I've got a fairly simple perl script, something like this:


      my $client = SOAP::Lite->service($wsdl);
      $client->on_fault(...);
      $client->proxy($endpoint);
      my $sessionId = $client->Logon($username, $password, "", $localTime);
      my $deals = $client->GetDeals($sessionId);
      if ( defined( $deals ) ) {
      foreach my $deal (@$deals) {
      ...
      }
      }
      $client->Logoff( $sessionId );

      It works fine on a single cpu machine, but on a dual cpu machine the
      GetDeals call usually returns a zero length array when I expect it to
      return a non-zero length array.

      Is SOAP::Lite thread safe?


      On both computers `perl -v` gives:
      This is perl, v5.8.7 built for i486-linux-gnu-thread-multi
      (with 1 registered patch, see perl -V for more detail)

      And `uname -a` gives:
      Linux ubuntu 2.6.15-27-server #1 SMP Fri Dec 8 18:43:54 UTC 2006 i686
      GNU/Linux



      Regards,
      Nick
    Your message has been successfully submitted and would be delivered to recipients shortly.