<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: stuck FTP:  TCPIP$FTP_KEEPALIVE question in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/stuck-ftp-tcpip-ftp-keepalive-question/m-p/4960891#M51591</link>
    <description>Solution was found (ECO patch), details are in my last comment</description>
    <pubDate>Wed, 22 Feb 2006 02:56:20 GMT</pubDate>
    <dc:creator>Peter Humaj</dc:creator>
    <dc:date>2006-02-22T02:56:20Z</dc:date>
    <item>
      <title>stuck FTP:  TCPIP$FTP_KEEPALIVE question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/stuck-ftp-tcpip-ftp-keepalive-question/m-p/4960884#M51584</link>
      <description>Hello everyone, &lt;BR /&gt;is there anybody who dealt with this kind of problems?&lt;BR /&gt;&lt;BR /&gt;I have&lt;BR /&gt;HP TCP/IP Services for OpenVMS Alpha Version V5.4&lt;BR /&gt;  on a AlphaServer DS25 running OpenVMS V7.3-2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;every few seconds I run ftp client to remote Unix machine and download some files.&lt;BR /&gt;In last few weeks ftp client (once in 2-3 days) gets stuck (there may be network packet losses or too much router traffic ..)&lt;BR /&gt;&lt;BR /&gt;Ftp's socket looks like this:&lt;BR /&gt;&lt;BR /&gt;TCPIP&amp;gt; sh dev bg5010 /ful&lt;BR /&gt;Device_socket:  bg5010      Type: STREAM&lt;BR /&gt;                      LOCAL                          REMOTE&lt;BR /&gt;         Port:        57507                              21&lt;BR /&gt;         Host:  10.12.65.1                      10.11.1.131&lt;BR /&gt;      Service:                                  FTP&lt;BR /&gt;&lt;BR /&gt;                                                           RECEIVE       SEND&lt;BR /&gt;                                   Queued I/O                    0             0&lt;BR /&gt;       Q0LEN         0             Socket buffer bytes           0             0&lt;BR /&gt;       QLEN          0             Socket buffer quota       61440         61440&lt;BR /&gt;       QLIMIT        0             Total buffer alloc            0             0&lt;BR /&gt;       TIMEO         0             Total buffer limit       491520        491520&lt;BR /&gt;       ERROR         0             Buffer or I/O waits           1             0&lt;BR /&gt;       OOBMARK       0             Buffer or I/O drops           0             0&lt;BR /&gt;                                   I/O completed                 1             0&lt;BR /&gt;                                   Bytes transferred             0             0&lt;BR /&gt;&lt;BR /&gt;  Options:  None&lt;BR /&gt;  State:    ISCONNECTED PRIV&lt;BR /&gt;  RCV Buff: WAIT&lt;BR /&gt;  SND Buff: None&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(it state is "ISCONNECTED", 1 IO completed, but it shows 0 bytes received. when I tried to connect to non-existent ftp server, status of socket was "ISCONNECTING", 0 IO completed.&lt;BR /&gt;When succesfully connected to ftp server, status is "ISCONNECTED", 2 IO completed, 51 bytes transferred (initial "Hello" from ftp server).&lt;BR /&gt;&lt;BR /&gt;So it seems to me, that ftp client sends SYN, receives SYN ACK (thus considers connection established) and sends ACK to ftp server, which probably gets lost...&lt;BR /&gt;&lt;BR /&gt;When I manually disconnect socket&lt;BR /&gt;TCPIP&amp;gt; discon device  bg5010&lt;BR /&gt;ftp client unfreezes ..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;First I tried to change general tcp options to timeout the socket:&lt;BR /&gt;&lt;BR /&gt;tcp_keepalive_default=1  &lt;BR /&gt;tcp_keepidle=20          &lt;BR /&gt;tcp_keepintvl=20         &lt;BR /&gt;tcp_keepcnt=2 &lt;BR /&gt;&lt;BR /&gt;it didn't help. Then I found in documentation &lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/732final/6526/6526pro_036.html" target="_blank"&gt;http://h71000.www7.hp.com/doc/732final/6526/6526pro_036.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;that ftp uses its own logical, so I set &lt;BR /&gt;DEFINE /SYSTEM/EXEC TCPIP$FTP_KEEPALIVE 1&lt;BR /&gt;&lt;BR /&gt;still ftp client got stuck.&lt;BR /&gt;&lt;BR /&gt;Then another version of documentation (older) on&lt;BR /&gt;&lt;A href="http://www.myths.com/pub/doc/openvms/721final/6526/6526profile_019.html" target="_blank"&gt;http://www.myths.com/pub/doc/openvms/721final/6526/6526profile_019.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;says that TCPIP$FTP_KEEPALIVE should be TRUE or FALSE.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My question: has anybody met this kind of problem of stuck FTP client? Is there any way to find out what socket options are set on a 'stuck' socket? &lt;BR /&gt;Which version of setting TCPIP$FTP_KEEPALIVE is really valid?&lt;BR /&gt;&lt;BR /&gt;Thank you .. at least for reading&lt;BR /&gt;&lt;BR /&gt;And greetings from small country in central Europe .. currently under 1 meter of heavy but melting snow :-)&lt;BR /&gt;</description>
      <pubDate>Sat, 18 Feb 2006 06:03:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/stuck-ftp-tcpip-ftp-keepalive-question/m-p/4960884#M51584</guid>
      <dc:creator>Peter Humaj</dc:creator>
      <dc:date>2006-02-18T06:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: stuck FTP:  TCPIP$FTP_KEEPALIVE question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/stuck-ftp-tcpip-ftp-keepalive-question/m-p/4960885#M51585</link>
      <description>Hi Humaj&lt;BR /&gt;and welcome to this forum!&lt;BR /&gt;I'm sorry I didn't have your kind of error but...&lt;BR /&gt;Think about recent changes in your systems that can affect this problem.&lt;BR /&gt;When I have problems with ftp through firewall I switch from active to passive ftp, or better I use sftp,scp also on OpenVMS.&lt;BR /&gt;&lt;BR /&gt;Pablo</description>
      <pubDate>Sat, 18 Feb 2006 06:24:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/stuck-ftp-tcpip-ftp-keepalive-question/m-p/4960885#M51585</guid>
      <dc:creator>paolo barila</dc:creator>
      <dc:date>2006-02-18T06:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: stuck FTP:  TCPIP$FTP_KEEPALIVE question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/stuck-ftp-tcpip-ftp-keepalive-question/m-p/4960886#M51586</link>
      <description>Hi Paolo,&lt;BR /&gt;so far, I'm not aware of any changes in network, but we are investingating this (only a part of network with VMS is under my control, Unix server is on a different segment).&lt;BR /&gt;And yes, I'm using passive ftp, but it makes no  difference - it's the "control" channel (to port 21) that gets stuck. And it happens once every few days (and ftp client is run approximately once in 5-10 seconds) .. as I said previously, there may be network problems (packet loss on routers) that I cannot influcence but have to cope with.&lt;BR /&gt;&lt;BR /&gt;I start to think about running ftp client as a batch job and create a watchdog task which would kill him if it does not terminate in some decent time .. but before using violence, I'd like to try some more ..reasonable solution :-)&lt;BR /&gt;&lt;BR /&gt;Thank you for answer anyway&lt;BR /&gt;Best regards,&lt;BR /&gt; peter&lt;BR /&gt;</description>
      <pubDate>Sun, 19 Feb 2006 10:21:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/stuck-ftp-tcpip-ftp-keepalive-question/m-p/4960886#M51586</guid>
      <dc:creator>Peter Humaj</dc:creator>
      <dc:date>2006-02-19T10:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: stuck FTP:  TCPIP$FTP_KEEPALIVE question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/stuck-ftp-tcpip-ftp-keepalive-question/m-p/4960887#M51587</link>
      <description>posted in wrong forum, moved to Open VMS forum</description>
      <pubDate>Sun, 19 Feb 2006 17:56:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/stuck-ftp-tcpip-ftp-keepalive-question/m-p/4960887#M51587</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2006-02-19T17:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: stuck FTP:  TCPIP$FTP_KEEPALIVE question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/stuck-ftp-tcpip-ftp-keepalive-question/m-p/4960888#M51588</link>
      <description>Could you post&lt;BR /&gt;$ ucx sh service ftp/ful&lt;BR /&gt;$ mc authorize sh tcpip$ftp&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 19 Feb 2006 18:45:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/stuck-ftp-tcpip-ftp-keepalive-question/m-p/4960888#M51588</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2006-02-19T18:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: stuck FTP:  TCPIP$FTP_KEEPALIVE question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/stuck-ftp-tcpip-ftp-keepalive-question/m-p/4960889#M51589</link>
      <description>Humai,&lt;BR /&gt;&lt;BR /&gt;TCPIP V5.4 is up to ECO 5 since JUN-2005. So maybe try to do yourself a favor and upgrade to the latest ECO first.&lt;BR /&gt;&lt;BR /&gt;It would be a waste of time, if you would try chasing a problem, that may have been already solved.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Mon, 20 Feb 2006 02:10:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/stuck-ftp-tcpip-ftp-keepalive-question/m-p/4960889#M51589</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-02-20T02:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: stuck FTP:  TCPIP$FTP_KEEPALIVE question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/stuck-ftp-tcpip-ftp-keepalive-question/m-p/4960890#M51590</link>
      <description>Thank you Volker Halle,&lt;BR /&gt;&lt;BR /&gt;ECO 5 has solved the problem (together with DEFINE /SYSTEM/EXEC TCPIP$FTP_KEEPALIVE 1)&lt;BR /&gt;&lt;BR /&gt;I've been able to make ftp client stuck by connecting to a linux server which had a firewall configured like this:&lt;BR /&gt;&lt;BR /&gt;iptables -A INPUT -p tcp --dport 21  -j DROP&lt;BR /&gt;iptables -A INPUT -p tcp --dport 21 --syn -j ACCEPT&lt;BR /&gt;&lt;BR /&gt;So it accepted first SYN packet, sent answer, but dropped all other packets to port 21.&lt;BR /&gt;&lt;BR /&gt;And actually even ECO1 was enough to solve the problem&lt;BR /&gt;&lt;BR /&gt;Thanks for help everyone!</description>
      <pubDate>Wed, 22 Feb 2006 02:37:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/stuck-ftp-tcpip-ftp-keepalive-question/m-p/4960890#M51590</guid>
      <dc:creator>Peter Humaj</dc:creator>
      <dc:date>2006-02-22T02:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: stuck FTP:  TCPIP$FTP_KEEPALIVE question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/stuck-ftp-tcpip-ftp-keepalive-question/m-p/4960891#M51591</link>
      <description>Solution was found (ECO patch), details are in my last comment</description>
      <pubDate>Wed, 22 Feb 2006 02:56:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/stuck-ftp-tcpip-ftp-keepalive-question/m-p/4960891#M51591</guid>
      <dc:creator>Peter Humaj</dc:creator>
      <dc:date>2006-02-22T02:56:20Z</dc:date>
    </item>
  </channel>
</rss>

