What about upload time?

5 views
Skip to first unread message

Ravi

unread,
Jun 12, 2009, 6:45:41 AM6/12/09
to GoogleFileService
Google app engine allows maximum 30 seconds for any request.
So if i am uploading a file of size 9-10MB, it will take more then
30Seconds. And after 30 seconds my request will get the exception and
upload will stop

How this will be handled??

tytung

unread,
Jun 12, 2009, 2:26:32 PM6/12/09
to GoogleFileService
Hi,

Thanks for your question in advance.

I worried about this <a href="http://code.google.com/intl/en/appengine/
docs/java/runtime.html#The_Request_Timer">30 seconds problem</a>
before.
I didn't know what it exactly means.
Should the server finish all responses to the web browser in a period
of 30 seconds?
Or the server can not do nothing and just wait all request data to be
received completely more than 30 seconds.

Anyway, the problem of maximum 30 seconds for any request had been
solved.
Maybe I should say this problem doesn't bother me too much.
I think the solution is apache commons-fileupload Streaming API.
Because I receive the uploaded file by streaming, I can process stream
data immediately before the whole file data has been received.

My usage experience is as follows:
I had successfully uploaded a file of size 8.67MB by using IE8. (You
can download it <a href="https://gae-file-service.appspot.com/download?
id=f1244825222841">here</a> if I don't delete it yet.)
However, when I uploaded the same file by using Firefox 3.0.10, I
received a timeout message the connection to the server was reset.
Then I press the retry button in Firefox's webpage to resend data.
Finally the file was uploaded successfully this time. So it works on
both IE and Firefox.

By the way, the downloading is no problem even if over 30 seconds or
more.

tytung
Reply all
Reply to author
Forward
0 new messages