all groups > iis ftp > march 2007 >
You're in the

iis ftp

group:

How does IIS handle upload file


How does IIS handle upload file Thomas
3/29/2007 5:48:01 AM
iis ftp:
Anyone who knows how IIS handle active connections when I update an existing
file on our FTP server?

What happens when I update an existing file that other people are already
started downloading? Does their connection get reset or does IIS handle
existing downloads to complete before the old file is deleted from the server.
We are updating files many times every day but don’t want to interrupt
active download.

Is there any possibility to configure how IIS should handle this?

System:
Windows server 2003 SP1
IIS 6.0
Re: How does IIS handle upload file .._..
3/29/2007 2:37:10 PM
Cached in memory for the download duration in general.

I believe this because I once deleted a 20 some meg zip file while I was
downloading it from the web server where I deleted it from. (Deleted from
the file system on the server.)

The download came just fine. (Luckily for me, I had already "cleaned up"
the unzipped version and would have had a problem had I not gotten the
file.) So, I think once the request is made the data is cached into memory
off disk and sent. The next HTTP request though should cause a read off the
disk again (for the new version or a 404 depending on what you are doing).

Depending on the size and the specific settings for IIS though, you might
run into issues, especially if the files are really large.

If these are images and HTML and so on, you might have people caching stuff
if they had been there earlier in the day.

[quoted text, click to view]

Re: How does IIS handle upload file Bernard Cheah [MVP]
4/2/2007 12:00:00 AM
If there are reading/downloading during delete or update, don't think you
can delete or update it.

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


[quoted text, click to view]

Re: How does IIS handle upload file Thomas
4/10/2007 12:44:01 AM
I have done some testing in order to get some answer on how IIS handle FTP.

You are right about the downloading part. I can't delete a file that is
being downloaded in another session. But if I try to update the file, my
active download connection is aborted and the file gets updated.

Server: Windows 2003 IIS6
Client: Total Commander

How does you handle this issue out there? Our customers is downloading 24 x 7.

[quoted text, click to view]
Re: How does IIS handle upload file Bernard Cheah [MVP]
4/12/2007 12:00:00 AM
Mmm.. not sure how you can handle this.
In the past, sometime I have to stop IIS FTP servies to overwrite files

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


[quoted text, click to view]

Re: How does IIS handle upload file Thomas
4/12/2007 2:16:00 AM
Well I guess I forgot an importent information.

It is only the update/delete that is done by the ftp protocol.
The download session is actually done by the http protocol, but the problem
is the same. How does I update files without disconnecting active download
sessions.


[quoted text, click to view]
Re: How does IIS handle upload file Bernard Cheah [MVP]
4/14/2007 12:00:00 AM
Well, is the same thing that if you are opening a file in Windows Explorer,
how can you overwrite the file?
it is the matter of file exclusive access. not just ftp.

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


[quoted text, click to view]

AddThis Social Bookmark Button