all groups > iis ftp > september 2005 >
You're in the

iis ftp

group:

FTP Client Stall Problem


FTP Client Stall Problem Ken Levy
9/19/2005 4:39:51 PM
iis ftp:
I'm having problems with the Microsoft FTP client "hanging" when run =
from a batch ftp script. I've recorded the log messages from the FTP =
session below (names have been changed to protect the innocent). The =
activity I receive in the client session is the message about opening =
the binary mode connection. The session is hung at that point and =
persists until manually terminated. I did run a netstat on the machine =
where the session ran which showed the connection in the CLOSE_WAIT =
state. This client was contacting a Win2000 IIS server at one of our =
vendor's sites. We've also seen hung sessions when contacting our own =
Win2000 IIS/FTP server using the MSFT FTP client from both WinXP Pro / =
SP2 and Win2000 Server.

Can anyone suggest what might be causing these hung sessions and what we =
might do to force the connection to close? We tried putting a timeout =
parameter on the scheduled task job that the script runs from, but the =
hung connection doesn't seem to be recognized and the task doesn't flush =
when it exceeds the runtime limit. Am I misunderstanding the =
function/purpose of the "Stop the task if it runs for 0 hours 2 minutes" =
in the settings tab of the Task Scheduler which spawns the .bat job =
which runs the ftp job.

We see this problem with hung sessions 2-3 times a week from a scheduled =
task that runs at 5 minute intervals, 24x7.

Thanks in advance for any help. Please post any responses to the news =
group.

Ken



-------------------------------------------------------------------------=
-------------------------=20
--- XYZService Inbound FTP - =
\\LAfile1\c$\scripts\XYZService_inbound_ftp5.bat =20
--- Started -LAFILE1- Sun 09/18/2005 21:10:00.42 =
=20
ftp> Connected to Sws.XYZServiceweather.com.
open Sws.XYZServiceweather.com
220 guardian Microsoft FTP Service (Version 5.0).
User (Sws.XYZServiceweather.com:(none)):=20
331 Password required for pqmet.

230 User pqmet logged in.
ftp> ftp>=20
Local directory now \\LAngs1\H_FTP_LARGE\Client_FTP\VNDRGRAF\KXXU.
ftp> LCD \\LAngs1\H_FTP_LARGE\Client_FTP\VNDRGRAF\KXXU
CD "/pqmet/LasVegas/5/FHTM/PUB/KXXX/"
250 CWD command successful.
ftp> BINARY
200 Type set to I.
ftp> GET R0_0.JPG KXXX_SingleSite_Radar_5min.jpg
200 PORT command successful.
150 Opening BINARY mode data connection for R0_0.JPG(91201 bytes).


NETSTAT -AN (lines omitted for clarity)

Active Connections

Proto Local Address Foreign Address State
Re: FTP Client Stall Problem Bernard Cheah [MVP]
10/14/2005 12:00:00 AM
File size is so small...
do you have the problem if you do it manually ?


--
Regards,
Bernard Cheah
http://www.iis-resources.com/
http://www.iiswebcastseries.com/
http://www.msmvps.com/bernard/


[quoted text, click to view]
I'm having problems with the Microsoft FTP client "hanging" when run from a
batch ftp script. I've recorded the log messages from the FTP session below
(names have been changed to protect the innocent). The activity I receive
in the client session is the message about opening the binary mode
connection. The session is hung at that point and persists until manually
terminated. I did run a netstat on the machine where the session ran which
showed the connection in the CLOSE_WAIT state. This client was contacting a
Win2000 IIS server at one of our vendor's sites. We've also seen hung
sessions when contacting our own Win2000 IIS/FTP server using the MSFT FTP
client from both WinXP Pro / SP2 and Win2000 Server.

Can anyone suggest what might be causing these hung sessions and what we
might do to force the connection to close? We tried putting a timeout
parameter on the scheduled task job that the script runs from, but the hung
connection doesn't seem to be recognized and the task doesn't flush when it
exceeds the runtime limit. Am I misunderstanding the function/purpose of
the "Stop the task if it runs for 0 hours 2 minutes" in the settings tab of
the Task Scheduler which spawns the .bat job which runs the ftp job.

We see this problem with hung sessions 2-3 times a week from a scheduled
task that runs at 5 minute intervals, 24x7.

Thanks in advance for any help. Please post any responses to the news
group.

Ken



--------------------------------------------------------------------------------------------------
--- XYZService Inbound FTP -
\\LAfile1\c$\scripts\XYZService_inbound_ftp5.bat
--- Started -LAFILE1- Sun 09/18/2005 21:10:00.42
ftp> Connected to Sws.XYZServiceweather.com.
open Sws.XYZServiceweather.com
220 guardian Microsoft FTP Service (Version 5.0).
User (Sws.XYZServiceweather.com:(none)):
331 Password required for pqmet.

230 User pqmet logged in.
ftp> ftp>
Local directory now \\LAngs1\H_FTP_LARGE\Client_FTP\VNDRGRAF\KXXU.
ftp> LCD \\LAngs1\H_FTP_LARGE\Client_FTP\VNDRGRAF\KXXU
CD "/pqmet/LasVegas/5/FHTM/PUB/KXXX/"
250 CWD command successful.
ftp> BINARY
200 Type set to I.
ftp> GET R0_0.JPG KXXX_SingleSite_Radar_5min.jpg
200 PORT command successful.
150 Opening BINARY mode data connection for R0_0.JPG(91201 bytes).


NETSTAT -AN (lines omitted for clarity)

Active Connections

Proto Local Address Foreign Address State
TCP 192.168.40.70:1427 21.16.9.3:21 CLOSE_WAIT

AddThis Social Bookmark Button