Joomla! Discussion Forums



It is currently Sun Nov 08, 2009 12:06 pm (All times are UTC )

 




Post new topic Reply to topic  [ 2 posts ] 
Author Message
Posted: Sat Sep 30, 2006 5:50 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Apr 12, 2006 9:20 pm
Posts: 12
Hi there all! I would like to present you here with an issue i have found in Joomla's core!

We all know that index.php and administrator/index2.php output the content through the ob_start() and ob_get_contents() functions, the Buffer functions!

Now, we all know that apache has a variable called Timeout and is used to stop scripts as expired if they send no content to the server!

Second, lets presume we have a function in a component that needs to run more that the TimeOut limit!

What happens is this:

  - since all the function output, if any, is caught by the buffer functions, the server won't get any data back except for the headers, which means that after that period, the server will stop the script from running giving back the client a timeout

What would be a solution for this:

- what i have tested is that i put a simple space (echo " ") just before the ob_start() function, this way the server gets some data and it won't stop the script from running

  Ideal would be if we could use instead of the space, the first tag from the html page "" or something related so we send to the server some data and to keep the rest of the process running!

  Please note that this procedure is tested, it's not a presumption!

  Looking fordward to your opinions!

Ovidiu


Last edited by rovisoft on Sat Sep 30, 2006 7:41 pm, edited 1 time in total.

Top
   
 
Posted: Sat Sep 30, 2006 7:50 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Apr 12, 2006 9:20 pm
Posts: 12
  One small problem:

  In the current state of Joomla the only problem with doing this would be if other components or modules would try to send any headers, so a solution for the future versions would be maybe to make a special class to call the headers of the extensions before the ob_start()

  Hope it helps! Ovidiu


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group