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

bidirectional over TCP/SSL?

Expand Messages
  • grant beattie
    hi, I m new to SOAP::Lite, so far it looks nice ;) I do have a couple of questions, however.. is it possible to have two-way communication over a single TCP
    Message 1 of 1 , Jan 5, 2004
    View Source
    • 0 Attachment
      hi,

      I'm new to SOAP::Lite, so far it looks nice ;) I do have a couple of
      questions, however..

      is it possible to have two-way communication over a single TCP
      connection? are persistent TCP connections supported? and
      non-blocking TCP in a single process?

      are there any examples of using SSL with TCP clients? the very simple
      server I have so far runs fine, but I can't seem to convince the
      client to connect with SSL.

      a related problem is that the server bombs when an SSL server accepts
      a non-SSL connection, because the connection is torn down by the time
      TCP.pm calls read(). this diff fixes it for me, but is probably not
      the real fix:

      --- TCP.pm.orig 2002-04-16 14:43:22.000000000 +1000
      +++ TCP.pm 2004-01-06 17:55:14.000000000 +1100
      @@ -206,6 +206,7 @@
      while (1) {
      my @ready = $session_set->wait($sock->timeout);
      for my $session (@ready) {
      + next if !$session;
      my $data;
      if (my $rc = $session->read($data, 4096)) {
      $data{$session} .= $data if $rc > 0;


      any advice would be appreciated.

      thanks,
      grant.
    Your message has been successfully submitted and would be delivered to recipients shortly.