How are CFCONTENT requests handled?

2009-02-06 Thread Seb Duggan
I'm putting together a page on one of my sites for downloading of hi- res press images. These are JPEGs; but I want them to be downloaded rather than opened in the browser. The following code works just fine: cfheader name=Content-Disposition value=attachment; filename=press- image.jpg /

RE: How are CFCONTENT requests handled?

2009-02-06 Thread Adrian Lynch
CF will be used for the duration of that request. I'd be interested in hearing a solution to this also. Adrian -Original Message- From: Seb Duggan [mailto:s...@sebduggan.com] Sent: 06 February 2009 11:49 To: cf-talk Subject: How are CFCONTENT requests handled? I'm putting

Re: How are CFCONTENT requests handled?

2009-02-06 Thread Nathan Strutz
Seb, It is most likely that CF will open the file you are delivering, however, it will probably be more in a streaming fashion, aka, it will probably not all be loaded into active memory. I just did it with a 200MB file, the memory went up about 6MB and now has dropped down 12MB. I would say

Re: How are CFCONTENT requests handled?

2009-02-06 Thread Seb Duggan
Thanks Nathan. I'm currently trying to work out a solution using ISAPI_Rewrite to modify the headers, but can't quite get it to work yet... On 6 Feb 2009, at 20:29, Nathan Strutz wrote: Seb, It is most likely that CF will open the file you are delivering, however, it will probably

Re: How are CFCONTENT requests handled?

2009-02-06 Thread Brian Kotek
The issue isn't memory usage as much as it is thread usage. A server thread will be occupied for the entire duration of the download. Which means if you have large files, and 50 people are downloading, then that is 50 of your threads used for however long it takes their downloads to complete. The

Re: How are CFCONTENT requests handled?

2009-02-06 Thread Brian Kotek
Or, depending on the version of CF8 and your familiarity with it, you could look at using CFTHREAD since those use a separate thread pool. On Fri, Feb 6, 2009 at 6:08 PM, Brian Kotek brian...@gmail.com wrote: The issue isn't memory usage as much as it is thread usage. A server thread will be