Stopping a connection after sending a message

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Stopping a connection after sending a message

  • Creator
    Topic
  • #48938
    Thomas Fortino
    Participant

      Hello All,

          AIX 5.2

          PlatformV 5.3P_Rev2

      Our group has been tasked with creating a new ADT interface. The Vendor has requested that the Cloveleaf break and re-establish the connection between each message message sent.

      We will be using a VPN between the Cloverleaf and the Vendor and going through two firewalls. The vendor recommends breaking and re-establishing the connection between messages to eliminate timeout issues.

      We want to use the normal pdl-tcpip and mlp_tcp.pdl and await replies. Is anyone doing this and if so how did you set it up.

      We currently have other interface using VPNs were Cloveleaf is the ‘client’ and use the same above protocols but it is a perminent connection and does not break the connection between each message.

      Thanks in advance,

    Viewing 0 reply threads
    • Author
      Replies
      • #60179
        Glenn Friedenreich
        Participant

          Hi Tom – We have to do this with a Mayo VPN connection to prevent timeouts.  We set up a cron job to stop and start the Mayo threads (both inbound and outbound) every 10 minutes.  It works, but leaks memory, and we have to cycle the process every 3 days.  We’re on Cloverleaf 5.3 AIX 5.1.  Not a great solution, but it does the job.

          Cron line:

          # Mayo cycle to keep connection active

          03,13,23,33,43,53 * * * *  /usr/local/scripts/cycleMayo.ksh 1>/dev/null 2>&1

          Script:

          #!/usr/bin/ksh

          # ‘cycleMayo – cycle mayo connections to keep vpn from timing out

          # Ed Mastascusa / Glenn Friedenreich

          # 13 Jan 2004

          # 15 Sept 2004 ejm  changed site to clprod from qprod

          #                   changed  hcisetenv to 5.3 temporary way

          clSite=clprod

          HCIROOT=/hci/qdx5.3/integrator

          eval $($HCIROOT/sbin/hcisetenv -root ksh $HCIROOT)

          eval $($HCIROOT/sbin/hcisetenv -site ksh $clSite)

          $HCIROOT/bin/hcicmd -p mayo -c “outHnacToMayo pstop” &

          wait

          sleep 10

          $HCIROOT/bin/hcicmd -p mayo -c “outHnacToMayo pstart” &

          wait

          sleep 10

          $HCIROOT/bin/hcicmd -p mayo -c “inMayoToHnac pstop” &

          wait

          sleep 10

          $HCIROOT/bin/hcicmd -p mayo -c “inMayoToHnac pstart”

      Viewing 0 reply threads
      • The forum ‘Cloverleaf’ is closed to new topics and replies.