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

Has anyone actually used SOAP::Transport::TCP successfully?

Expand Messages
  • Randy J. Ray
    I m trying to write an example client/server pair using SOAP::Transport::TCP and I am finding that the server process, once it enters the handle() loop, never
    Message 1 of 2 , May 24, 2002
    • 0 Attachment
      I'm trying to write an example client/server pair using SOAP::Transport::TCP
      and I am finding that the server process, once it enters the handle() loop,
      never seems to bind the socket.

      At first, I was getting an error of:

      Can't call method "read" on an undefined value at .../SOAP/Transport/TCP.pm line 210

      This was due to the fact that the call to accept() at line 138 of
      IO::SessionSet::wait is returning immediately, without a valid connection
      object. Line 140 creates a value $newsess only if $newhandle is set, but line
      141 pushes $newsess onto @session without checking *it* to see if it is
      valid. I put a test in at 141 to only push it if it is valid. Then my server
      would run, but my CPU usage went way up as this creates a spin cycle, with
      accept() immediately returning, and the loop being re-entered again. During
      this period, I checked with "netstat -an" and nothing was bound to the port I
      was using (9001).

      I'll keep looking, but it would help to know if this has worked for anyone
      else. I'm not sure if I'm on a snipe hunt or not.

      Randy
      --
      """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
      Randy J. Ray rjray@...
      Campbell, CA rjray@...
      <A HREF="http://www.svsm.org">Silicon Valley Scale Modelers</A>
    • rjray@blackperl.com
      Scratch that-- it turns out I wasn t setting the Listen parameter when creating the server object. I thought it defaulted, but I was mistaken. Randy --
      Message 2 of 2 , May 24, 2002
      • 0 Attachment
        Scratch that-- it turns out I wasn't setting the Listen parameter when
        creating the server object. I thought it defaulted, but I was mistaken.

        Randy
        --
        """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
        Randy J. Ray rjray@...
        Campbell, CA rjray@...
        <A HREF="http://www.svsm.org">Silicon Valley Scale Modelers</A>
      Your message has been successfully submitted and would be delivered to recipients shortly.