House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

cfcontent to serve PDF files hanging

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jason Fill
08/31/2010 11:41 AM

Our application uses cfcontent to serve back some PDF files and several times per day, the request for a pdf will just hang, like 300,000 + milliseconds to bring back a PDF that is already created. The code we are using is quite simple and each users file is fully generated before this call is made.   <cfcontent reset="true" /> <cfheader name="Content-Type" value="pdf"> <cfheader name="Content-Disposition" value="#type)#; filename=#userid#_file.pdf"> Has anyone ran into this before or have any ideas what might be going on? Thanks Jason

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jake Churchill
08/31/2010 12:02 PM

The only think I could think of is use application/pdf for the Content-Type (that is technically the correct mime type). -Jake On Tue, Aug 31, 2010 at 10:33 AM, Jas ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Mark A. Kruger
08/31/2010 12:14 PM

Good call I think Jake... The only think I could think of is use application/pdf for the Content-Type (that is technically the correct mime type). -Jake On Tue, Aug 31, 2010 at 10:33 AM, Jas ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Mark A. Kruger
08/31/2010 12:19 PM

ON the other hand... I would expect a mime/type problem to result in an error on the browser - not a hanging request, unless of the course the "hanging" is the browsers cycling through choices to figure out how to display the file. How may files are in the directory in question? Do you perhaps have an I/O problem? Mark A. Kruger, MCSE, CFG (402) 408-3733 ext 105 Skype: markakruger www.cfwebtools.com www.coldfusionmuse.com www.necfug.com Good call I think Jake... The only think I could think of is use application/pdf for the Content-Type (that is technically the correct mime type). -Jake On Tue, Aug 31, 2010 at 10:33 AM, Jas ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jason Fill
09/01/2010 03:59 PM

Thank you for the ideas.  We are going to change the mime/type and also add some I/O logging to see if we can find a correlation there.  Should we find the issue I will certainly post back. Thanks for the time! Jason ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Stephen Hardesty
05/10/2011 09:56 AM

Jason, I am experiencing a similar problem. Did you ever find out exactly what was causing yours? thanks, Stephen ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

February 04, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29