RE: strange upload trouble

From: Alun Jones [MS] (alunj_at_online.microsoft.com)
Date: 06/18/04


Date: Fri, 18 Jun 2004 17:09:27 GMT


> From: bruno.baker@inowebinc.com (Bruno Baker)
>
> This is a problem I would not have expected from MS...
> Here's what is going on:
> -Win2k3 Server
> -FTP server (iis 6)
> user logs in with his win2k3 account to his space in
> /websites/localuser/"hisusername"
>
> The server is set to unlimited connections, timeout is 120sec.
>
> I open IE to the ftp and log in.
> I start to upload a file (2mb). While the first one is uploading I
> upload a second file (200kb). When the second file finishes uploading
> (before the first one does), the server drops the connection and the
> first file stops uploading...

Have you run Network Monitor or some similar "sniffer" type of tool to see
what traffic is going on?

What makes you sure that it is the server, and not the client, that drops
the connection? Is there a log entry or error message that leads you to
this conclusion? Please provide that detail.

FTP servers are not capable of holding more than one concurrent transfer to
a particular control connection, so the IE client implementation must have
created two control connections in order to transfer two files at the same
time. You can see this using "netstat" at the command line - there are two
connections destined for the FTP server on the "ftp" port, in the
"ESTABLISHED" state.

I tried to reproduce your case here - to ensure that the first upload
didn't finish early, I used a 2GB file, and to slow it down, I copied it
from out of a zip file. So, I dragged that over to my window on the FTP
URL, then I went to an explorer window, and dragged a zero byte file into
the same window. A directory listing showed that the upload of the 2GB
file was still going on - data was still being written - long after the
zero byte file had finished uploading. Eventually, the 2GB upload
completed. Unless I am missing some step that you have not outlined above,
I can not reproduce your problem here.

Is it possible that you are closing your IE window on the FTP URL after the
smaller file has finished, but before the larger file has?

How long does the larger file take to upload? There are firewalls and
routers that are known to terminate the control connection if there is no
traffic for a certain period of time - which is common in an upload - and
this will cause the upload to be terminated by the server.

Can you reproduce this on a network connection where there is no
intervening component (other than the network cable) to interfere?

Alun.
~~~~



Relevant Pages

  • Re: FTP question
    ... |> I have one server that has had connectivity issues this past week ... |> directed at trying yet another ftp software. ... |> or an error about the socket connection. ... |> own modem and a Linksey router using Xp 64bit system. ...
    (microsoft.public.windowsxp.network_web)
  • Re: On topic, sort of...
    ... server running on what I think is an XP box and it keeps dying on me. ... internet connection is fine, but the upload keeps timing out and seems ... Might want to try it with another FTP ...
    (alt.2600)
  • [Full-disclosure] PlatinumFTP 1.0.18 remote DoS
    ... PlatinumFTPserver simplifies management of all your Ftp clients with ... PlatinumFTP 1.0.18 server. ... remote server has closed connection ... Second Bug: ...
    (Full-Disclosure)
  • PlatinumFTP 1.0.18 remote DoS
    ... PlatinumFTPserver simplifies management of all your Ftp clients with ... PlatinumFTP 1.0.18 server. ... remote server has closed connection ... Second Bug: ...
    (Bugtraq)
  • Re: Single Logon
    ... upload command to upload files ... which implement those basic FTP verbs. ... |> components will retrieve a ServicePoint(which represent a connection to ... |> | private void DownloadFile(string strFilename, string strAddress, ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)