Re: [ACFUG Discuss] strange issue with cfcontent

2007-08-09 Thread Teddy R Payne

Dusty,
Have you contacted Host My Site about this issue?

Do they have any throttling on long running requests that may interfere with 
what you are trying to achieve?


Teddy

- Original Message -
From: Dusty Hale [EMAIL PROTECTED]
To: discussion@acfug.org
Sent: Thursday, August 09, 2007 9:07 AM
Subject: RE: [ACFUG Discuss] strange issue with cfcontent


Steven:

I had actually already done most of the testing you described. Will do 
more

shortly

The downloads do not get cut off at consistent times. I also realized that 
I

had already put a cfsetting requesttimeout=2000 in the original code so
that was there all along. This throws out that theory I guess.

1. I put one of these files inside the webroot as a test. Made a regular
HTML link to. It downloads fine with no problems that way. I also had a 
few
of the other folks that report this problem test this link and it works 
fine

for them too.

2. When using cfcontent (file outside), sometime it works, most of the 
time

the download is cut short at inconsistent intervals. However the file even
though cut short is usually in tact and functional. They are MP3 audio and
come out missing much of the audio.

3. I haven't really tested your #3 except using my local cf server on my
laptop. That always seem to be fine.

The site is on a shared hosting plan at HostMySite.com. Could it be that
there are not enough CF resources because of the shared environment and
cfcontent is just not able to get the juice it needs to put together 5mb
files (sometimes more)?

Does anyone know of any specialized cfx, custom tag, or UDF, cfc or 
whatever
that is maybe designed for what I'm doing? That is serving larger files 
say

5 to 10mb in size.

Do you think my files might be too large to this with cfcontent? I didn't
think so because I have used cfcontent for this type thing numerous times 
in

the past and never run into anything like this.

Any thought much appreciated.

Thx

Dusty

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Ross
Sent: Wednesday, August 08, 2007 4:53 PM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] strange issue with cfcontent

Dusty, is it consistent as to when the server cuts off the download?
If you can replicate it and find out if that part is around the same time
you may be able to track down some sort of timeout or keep alive setting
that is getting cut off from the webserver side. Doesn't really make sense
though.

How about when you serve a large file w/o using CF?

I would start at the most simple scenario:

1. download a static file via the webserver 2. have coldfusion serve that
static file (outside of your app) 3. have coldfusion serve that statc file
inside your app

That should at least lead you in the right direction (either its related 
to

your app or not)


-Steven

On 8/8/07, Dusty Hale [EMAIL PROTECTED] wrote:

Yes I am validating everything but only sent a very small piece of the

code.

There is additional code before it even gets that far that verify that
the user is logged in, who they are, what they have permission to, and
that they actually purchased the file as well as a FileExists check
using the #application.path_audio##url.donorid#.mp3. But they have to
get through all the other checks before the cfcontent even runs. Is
that what you meant validating?

Hopefully this is secure enough for the balance of security decisions.

On another note. Dean you are a cool guy. Even though I once left a
negative comment about one of your threads, you continue to respond to
my issues with good useful advice. I have thought long and hard about
that comment I left inspired by your disagreements with Robert (I
think that was his name) and I say here and now, I was wrong to leave
that comment and officially retract it. I think I was temporarily
impaired by other problems going on and have learned a big lesson from
it. That is not to react emotionally to things of that nature or
issues which I might not be aware of all the details. I officially

apologize and hope you forgive me for it.


Kindest regards,

Dusty

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dean H.
Saxe
Sent: Wednesday, August 08, 2007 2:35 PM
To: discussion@acfug.org
Subject: Re: [ACFUG Discuss] strange issue with cfcontent

FYI, your new code is subject to HTTP Response Splitting if you're not
validating the value of URL.donorid.

http://en.wikipedia.org/wiki/Http_response_splitting

-dhs



Dean H. Saxe, CISSP, CEH
[EMAIL PROTECTED]
Free speech exercised both individually and through a free press, is
a necessity in any country where people are themselves free.
 -- Theodore Roosevelt, 1918


On Aug 8, 2007, at 1:48 PM, Dusty Hale wrote:

 I changed my code but the same thing happens. The download gets cut
 off (occasionally they work) or stuck. Tested on several computers
 behind different networks. Internet connectivity is pretty much
 officially ruled 

re[2]: [ACFUG Discuss] strange issue with cfcontent

2007-08-09 Thread Mischa Uppelschoten ext 10
I know I'm a bit late to this, but I was thinking this direction as well: copy 
the file to a downloadable version with a guid in the name in an accessible 
directory, so others can't guess it and then use OnSessionEnd to clean it up. 
Added benefit is that CF is out of the picture and the webserver will take care 
of transferring the file...
/m

: Also could it be that cfcontent is not such a good approach for doing what I
: described. Basically keeping the files out of the webroot for security. Is
: there another better approach. Maybe create a process that temporarily
: creates a folder and copy of the file for a normal direct link to download
: and then wipe it off after a time. That was just a quick thought.

: Dusty 


-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





Re: [ACFUG Discuss] strange issue with cfcontent

2007-08-09 Thread Douglas Knudsen
speaking of throttling, there is a * Request Throttle Threshold *in CF these
days as well as * Request Throttle Memory *.  I'd be curious and ask
HostMySite what they have this set to as cfcontent use would be governed by
this and just maybe affecting things.

DK

On 8/9/07, Dusty Hale [EMAIL PROTECTED] wrote:

 I have contact HostMySite. They are the ones that suggested that cf
 resources may be not sufficient on the shared server the site was on. They
 seem to believe CF or client connectivity was the problem. They
 recommended
 moving the site to a different shared server (I guess they thought had
 more
 cf resources). We made of test copy of the site on this new shared server
 but it did not solve the issue and it continues on the new server and the
 old one.

 I'm going to contact them about the throttling ... That is a good
 suggestion. Maybe it is possible that something is in place that would
 override the requesttimeout=2000 ...

 Thank you very much for your response and the suggestion.

 Dusty

 P.S. This was HostMySite's response that initiated trying the server move:

 -
 There are two possibilities-

 1) The clients connections are weak and the download isn't coming through
 correctly.

 2) At the time of download, the server is running high on Cold Fusion
 processes and putting together a bad file for download.

 We can't do much about the 1st option, but we can try moving your site to
 another ColdFusion server.  Would you be interested?  Let us know how to
 proceed.  Thank you.

 
 

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Teddy R Payne
 Sent: Thursday, August 09, 2007 10:02 AM
 To: discussion@acfug.org
 Subject: Re: [ACFUG Discuss] strange issue with cfcontent

 Dusty,
 Have you contacted Host My Site about this issue?

 Do they have any throttling on long running requests that may interfere
 with
 what you are trying to achieve?

 Teddy

 - Original Message -
 From: Dusty Hale [EMAIL PROTECTED]
 To: discussion@acfug.org
 Sent: Thursday, August 09, 2007 9:07 AM
 Subject: RE: [ACFUG Discuss] strange issue with cfcontent

  Steven:
 
  I had actually already done most of the testing you described. Will do
  more shortly
 
  The downloads do not get cut off at consistent times. I also realized
  that I had already put a cfsetting requesttimeout=2000 in the
  original code so that was there all along. This throws out that theory
  I guess.
 
  1. I put one of these files inside the webroot as a test. Made a
  regular HTML link to. It downloads fine with no problems that way. I
  also had a few of the other folks that report this problem test this
  link and it works fine for them too.
 
  2. When using cfcontent (file outside), sometime it works, most of the
  time the download is cut short at inconsistent intervals. However the
  file even though cut short is usually in tact and functional. They are
  MP3 audio and come out missing much of the audio.
 
  3. I haven't really tested your #3 except using my local cf server
  on my laptop. That always seem to be fine.
 
  The site is on a shared hosting plan at HostMySite.com. Could it be
  that there are not enough CF resources because of the shared
  environment and cfcontent is just not able to get the juice it needs
  to put together 5mb files (sometimes more)?
 
  Does anyone know of any specialized cfx, custom tag, or UDF, cfc or
  whatever that is maybe designed for what I'm doing? That is serving
  larger files say
  5 to 10mb in size.
 
  Do you think my files might be too large to this with cfcontent? I
  didn't think so because I have used cfcontent for this type thing
  numerous times in the past and never run into anything like this.
 
  Any thought much appreciated.
 
  Thx
 
  Dusty
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven
  Ross
  Sent: Wednesday, August 08, 2007 4:53 PM
  To: discussion@acfug.org
  Subject: Re: [ACFUG Discuss] strange issue with cfcontent
 
  Dusty, is it consistent as to when the server cuts off the download?
  If you can replicate it and find out if that part is around the same
  time you may be able to track down some sort of timeout or keep alive
  setting that is getting cut off from the webserver side. Doesn't
  really make sense though.
 
  How about when you serve a large file w/o using CF?
 
  I would start at the most simple scenario:
 
  1. download a static file via the webserver 2. have coldfusion serve
  that static file (outside of your app) 3. have coldfusion serve that
  statc file inside your app
 
  That should at least lead you in the right direction (either its
  related to your app or not)
 
 
  -Steven
 
  On 8/8/07, Dusty Hale [EMAIL PROTECTED] wrote:
  

Re: [ACFUG Discuss] strange issue with cfcontent

2007-08-09 Thread charlie arehart
Hey Doug, though it's rather pitifully documented, all I've seen 
indicates that these throttles (new as of 7) are for file uploads, 
rather than CFContent. Still, with it so poorly documented, one can wonder.


/charlie

Douglas Knudsen wrote:
speaking of throttling, there is a * Request Throttle Threshold *in CF 
these days as well as * Request Throttle Memory *.  I'd be curious and 
ask HostMySite what they have this set to as cfcontent use would be 
governed by this and just maybe affecting things.


DK

On 8/9/07, *Dusty Hale* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
wrote:


I have contact HostMySite. They are the ones that suggested that cf
resources may be not sufficient on the shared server the site was
on. They
seem to believe CF or client connectivity was the problem. They
recommended
moving the site to a different shared server (I guess they thought
had more
cf resources). We made of test copy of the site on this new shared
server
but it did not solve the issue and it continues on the new server
and the
old one.

I'm going to contact them about the throttling ... That is a good
suggestion. Maybe it is possible that something is in place that would
override the requesttimeout=2000 ...

Thank you very much for your response and the suggestion.

Dusty

P.S. This was HostMySite's response that initiated trying the
server move:

-

There are two possibilities-

1) The clients connections are weak and the download isn't coming
through
correctly.

2) At the time of download, the server is running high on Cold Fusion
processes and putting together a bad file for download.

We can't do much about the 1st option, but we can try moving your
site to
another ColdFusion server.  Would you be interested?  Let us know
how to
proceed.  Thank you.




-Original Message-
From: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] On Behalf Of
Teddy R Payne
Sent: Thursday, August 09, 2007 10:02 AM
To: discussion@acfug.org mailto:discussion@acfug.org
Subject: Re: [ACFUG Discuss] strange issue with cfcontent

Dusty,
Have you contacted Host My Site about this issue?

Do they have any throttling on long running requests that may
interfere with
what you are trying to achieve?

Teddy

- Original Message -
From: Dusty Hale [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
To: discussion@acfug.org mailto:discussion@acfug.org
Sent: Thursday, August 09, 2007 9:07 AM
Subject: RE: [ACFUG Discuss] strange issue with cfcontent

 Steven:

 I had actually already done most of the testing you described.
Will do
 more shortly

 The downloads do not get cut off at consistent times. I also
realized
 that I had already put a cfsetting requesttimeout=2000 in the
 original code so that was there all along. This throws out that
theory
 I guess.

 1. I put one of these files inside the webroot as a test. Made a
 regular HTML link to. It downloads fine with no problems that way. I
 also had a few of the other folks that report this problem test this
 link and it works fine for them too.

 2. When using cfcontent (file outside), sometime it works, most
of the
 time the download is cut short at inconsistent intervals.
However the
 file even though cut short is usually in tact and functional.
They are
 MP3 audio and come out missing much of the audio.

 3. I haven't really tested your #3 except using my local cf server
 on my laptop. That always seem to be fine.

 The site is on a shared hosting plan at HostMySite.com. Could it be
 that there are not enough CF resources because of the shared
 environment and cfcontent is just not able to get the juice it needs
 to put together 5mb files (sometimes more)?

 Does anyone know of any specialized cfx, custom tag, or UDF, cfc or
 whatever that is maybe designed for what I'm doing? That is serving
 larger files say
 5 to 10mb in size.

 Do you think my files might be too large to this with cfcontent? I
 didn't think so because I have used cfcontent for this type thing
 numerous times in the past and never run into anything like this.

 Any thought much appreciated.

 Thx

 Dusty

 -Original Message-
 From: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] On Behalf Of Steven
 Ross
 Sent: Wednesday, August 08, 2007 4:53 PM
 To: discussion@acfug.org 

Re: [ACFUG Discuss] strange issue with cfcontent

2007-08-09 Thread charlie arehart
Well, of course, that requires Enterprise, and even many hosting 
companies still try to get away with using only Standard, even in shared 
hosting packages. Shame, really (for the lost benefit of sandboxing as 
well).


/charlie

Steven Ross wrote:

It is strange that a shared host doesnt have seperate CF instances
going to protect you from this kind of thing. Its simple to setup,
although it does consume a bit of resources.

On 8/9/07, Douglas Knudsen [EMAIL PROTECTED] wrote:
  




-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform


For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





Re: [ACFUG Discuss] strange issue with cfcontent

2007-08-09 Thread charlie arehart
Well, I'm saying that they're all about file uploading. Or did you mean 
to say instead that the new (in CF8) third parameter is about CFCONTENT, 
perhaps? I don't see that as so, but yes, we do need to press Adobe to 
document these better.


/charlie

Douglas Knudsen wrote:
there is a third setting pertaining to file upload throttling.  But 
yes, I've complained about these three settings before, there is not 
much on them at all.


DK

On 8/9/07, *charlie arehart* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Hey Doug, though it's rather pitifully documented, all I've seen
indicates that these throttles (new as of 7) are for file uploads,
rather than CFContent. Still, with it so poorly documented, one
can wonder.

/charlie





-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform


For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





Re: [ACFUG Discuss] strange issue with cfcontent

2007-08-09 Thread charlie arehart
Right, I agree entirely. If they are about uploads only and not requests 
in general (as I've heard), then they should be renamed or at least 
expanded upon, for sure.


/charlie

Douglas Knudsen wrote:
Now I've heard the response before that all three settings pertain to 
uploads, but the below contradicts that.  A 'request' in CF terms is 
not limited to uploads.  How this works and where is this queue as it 
relates to thread counts and such is well, unknown to the public.  If 
they truly are specific to uploads only, then they ought to be 
renamed, eh?


looking at CF8 docs
http://livedocs.adobe.com/coldfusion/8/htmldocs/basiconfig_05.html#1215023
and CF7 docs...well I can't bloody find it on livedocs.
we have from the cf8 live docs:

Maximum Size Of Post Data



Limits the amount of data that can be posted to the server in a single 
request. ColdFusion rejects single requests larger than the specified 
limit.



RequeSt Throttle Threshold



Requests smaller than the specified limit are neither queued nor 
counted as part of the total memory. Requests larger than the 
specified limit are counted as part of total memory and are queued if 
the request throttle-memory size is exceeded.





Request Throttle Memory



Limits total memory size for the throttle. If sufficient total memory 
is not available, ColdFusion queues requests until enough memory is free.





On 8/9/07, *charlie arehart* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Well, I'm saying that they're all about file uploading. Or did you
mean
to say instead that the new (in CF8) third parameter is about
CFCONTENT,
perhaps? I don't see that as so, but yes, we do need to press Adobe to
document these better.

/charlie

Douglas Knudsen wrote:
 there is a third setting pertaining to file upload throttling.  But
 yes, I've complained about these three settings before, there is not
 much on them at all.

 DK

 On 8/9/07, *charlie arehart* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:

 Hey Doug, though it's rather pitifully documented, all I've seen
 indicates that these throttles (new as of 7) are for file
uploads,
 rather than CFContent. Still, with it so poorly documented, one
 can wonder.

 /charlie




-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-






--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?
-
Annual Sponsor - Figleaf Software http://www.figleaf.com

To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink http://www.fusionlink.com
- 





-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform


For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-



[ACFUG Discuss] Max Early Bird Discount Ends Tomorrow

2007-08-09 Thread Cameron Childress
Register at:  http://www.adobe.com/max
And if you register, make sure you put Teddy Payne as your User Group
leader.  He gets extra credit in the Adobe UG Manager world for it.

---
...and...  I just booked my room...
Palmer House Hilton - Fri Sep 28th - Wed Oct 3rd
Arrive ORD 4:47PM Fri, leave Wed 5:30PM

Plan on hitting the local bars Fri/Sat nights.  I hope they don't hit
back too hard.  If any ACFUGers are planning on doing the same lemme
know.

-Cameron

-- 
Cameron Childress
Sumo Consulting Inc
http://www.sumoc.com
---
cell:  678.637.5072
aim:   cameroncf
email: [EMAIL PROTECTED]


-
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-