uploading 1MB file over slow connection - GAE request timeout

38 views
Skip to first unread message

Tolick

unread,
Jan 18, 2010, 5:51:11 AM1/18/10
to Google App Engine
For simplicity reasons let's assume someone tries to upload 1MB file
over modem connection (56k, for example). That would take ~2 minutes
which will trigger DeadlineExceededException.

If someone solved the problem via standard means (without Applets or
other heavy browser side components, I mean) - please share your
experience!

Nick Johnson (Google)

unread,
Jan 19, 2010, 1:07:27 PM1/19/10
to google-a...@googlegroups.com
Hi,

The 30 second deadline applies only to time spent executing your code. Your code does not begin executing until the client has finished sending the request body, so the speed of the uploader does not matter.

-Nick Johnson
 

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.






--
Nick Johnson, Developer Programs Engineer, App Engine
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047

Locke

unread,
Jan 19, 2010, 2:41:40 PM1/19/10
to Google App Engine
Nick: If someone were to download a 1MB file over a 56k modem,
AppEngine would kill the process every time, is that correct?

On Jan 19, 1:07 pm, "Nick Johnson (Google)" <nick.john...@google.com>
wrote:
> Hi,


>
> On Mon, Jan 18, 2010 at 10:51 AM, Tolick <anatoliy.arteme...@gmail.com>wrote:
>
> > For simplicity reasons let's assume someone tries to upload 1MB file
> > over modem connection (56k, for example). That would take ~2 minutes
> > which will trigger DeadlineExceededException.
>
> > If someone solved the problem via standard means (without Applets or
> > other heavy browser side components, I mean) - please share your
> > experience!
>
> The 30 second deadline applies only to time spent executing your code. Your
> code does not begin executing until the client has finished sending the
> request body, so the speed of the uploader does not matter.
>
> -Nick Johnson
>
>
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-a...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > google-appengi...@googlegroups.com<google-appengine%2Bunsu...@googlegroups.com>

nickmilon

unread,
Jan 19, 2010, 3:54:15 PM1/19/10
to Google App Engine
Locke,
Wrong ! it will not as my experience tells and Nick above is
explaining

Nick

Locke

unread,
Jan 19, 2010, 4:37:52 PM1/19/10
to Google App Engine
Mr. Milon,

Mr. Johnson explained that UPLOADS do not start your 30s counter until
they complete. My question is about DOWNLOADS in which your app begins
execution and THEN sends data to the user, executing all the while.

Please review the RFC 2616 if you are confused.

Nick Johnson (Google)

unread,
Jan 20, 2010, 5:36:33 AM1/20/10
to google-a...@googlegroups.com
Hi Locke,

The same applies to downloads: The response is not sent to the user until your script finishes executing, and thus the time the user takes to download the response is not factored into your overall execution time.

-Nick Johnson

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.



Reply all
Reply to author
Forward
0 new messages