PDA

View Full Version : Feature suggestion: Time-outs on Upload


cords
28th of February 2004 (Sat), 09:09
hi pekka,

browsing through the forums i noticed a common recurring thread: a lot of people experience PHP and browser time-out issues when uploading images into exhibitions.

obviously not much can be done about the physical upload (file transfer using the webform on step 1) but would it be possible to maybe show some kind of intermediate "status" page while the resizing (step 6) is taking place - writing back to the browser after each successful/unsuccessful resize?

this won't prevent PHP time-outs from occuring (although that can be managed with ini_set()) but it should stop a browser timing-out when it hasn't received data back from the server after n seconds...

kind regards,
cord schneider

Pekka
28th of February 2004 (Sat), 15:26
Browser receivess data from EE in every step of uploading - I don't think browser timeouts are a problem. PHP timeouts are.

I have already started writing a totally new upload system strcuture where each step is placed on database and you will have detailed progress reports and also a possibility to fight timeouts by using less actions per "page". Also, this system will make resume possible.

This feature will come in EE 1.51.

loupgarou
28th of February 2004 (Sat), 20:26
I set my php timeout to 3000 seconds.

so I don't have this problem...

unless you don't have a dedicated windows server. 8)

cords
29th of February 2004 (Sun), 03:58
Browser receivess data from EE in every step of uploading - I don't think browser timeouts are a problem. PHP timeouts are.

hmm... quite possible. although, i was watching the bytes received from the server and they were 0 even though the connection time was ticking away. i've used int_set() to increase the maximum php script execution time to around 600 seconds and the time-outs happen around the 120 second mark. so, i'm not sure who's closing the connection and why.

my work-around is to ftp all my images to the server as normal, then upload (and resize) them into the database one at a time. i don't get any time-outs but the process is a lot slower than importing them all at the same time.

I have already started writing a totally new upload system strcuture where each step is placed on database and you will have detailed progress reports and also a possibility to fight timeouts by using less actions per "page". Also, this system will make resume possible.

This feature will come in EE 1.51.

sounds very cool! let is know when you want us to start testing it.. :D