[google-appengine] Re: Development server hangs

2010-10-31 Thread Tim Hoffman
Hi

You are using python 2.6, I suggest you retry using the "supported"
python2.5.x

Also the SDK is single threaded so everything will block whilst a
large request is processed.


Rgds

T

On Oct 31, 11:37 pm, Bemmu  wrote:
> The dev server often hangs. It seems to especially hang if I send a
> largish JSON reply back to the client (50k or so). When I commented out
> some stuff to make the size of responses smaller, the hangs seemed to
> become less frequent. I can also cure such a hang so that it serves the
> next call OK by pressing control-c. Then it shows the following:
>
> Exception happened during processing of request from ('114.154.48.139',
> 57151)
> Traceback (most recent call last):
> File "/usr/lib/python2.6/SocketServer.py", line 281, in
> _handle_request_noblock
> self.process_request(request, client_address)
> File "/usr/lib/python2.6/SocketServer.py", line 307, in process_request
> self.finish_request(request, client_address)
> File "/usr/lib/python2.6/SocketServer.py", line 320, in finish_request
> self.RequestHandlerClass(request, client_address, self)
> File "/home/bemmu/google_appengine/google/appengine/tools/dev_appserver.py",
> line 3091, in __init__
> BaseHTTPServer.BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
> File "/usr/lib/python2.6/SocketServer.py", line 615, in __init__
> self.handle()
> File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle
> self.handle_one_request()
> File "/usr/lib/python2.6/BaseHTTPServer.py", line 312, in
> handle_one_request
> self.raw_requestline = self.rfile.readline()
> File "/usr/lib/python2.6/socket.py", line 406, in readline
> data = self._sock.recv(self._rbufsize)
> KeyboardInterrupt
>
> Since during the normal course of my app's lifetime the client does
> several calls to the server, it's difficult to work while such hangs
> happen. In practice I have to keep constantly deploying my app to the
> real app engine servers to see if it really works or not. Is there any
> fix for this so I could continue testing locally without hangs?
>
> I'm on Ubuntu 10.04 LTS (lucid).

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Development server hangs

2010-10-31 Thread Bemmu
Yes, seems that since the server is single threaded and Chrome likes to
keep a connection open for further requests (when loading a lot of
small images at least), the server hangs until Chrome lets go of the
connection. I could verify this by reloading an image while the server
hangs, and that request it does serve even though it ignores all else.


I wonder if there is a way for the server to tell browsers "never keep
connections open, please".

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Development server hangs

2010-11-01 Thread Bemmu
Tried including "Connection: close" header in dev_appserver replies,
but at least that didn't help.

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Development server hangs

2010-11-01 Thread Tim Hoffman
Use firefox ;-)

On Nov 1, 3:18 pm, Bemmu  wrote:
> Tried including "Connection: close" header in dev_appserver replies,
> but at least that didn't help.

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Development server hangs

2010-11-01 Thread Bemmu
Thanks. Decided to move small images to another server, that seems to
make it much less likely that Chrome would try to keep the connection
open.

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Development server hangs

2010-11-01 Thread djidjadji
Both sides of a TCP/IP connection can decide to close a connection.
The other side has to deal with it.
Or maybe an intermediate router decides to terminate it for some reason.

It should be possible to rewrite the dev-server to close the
connection once it has sent the responds.
Maybe the dev-server should do this if it can't serve a second request
on the same connection.

2010/11/1 Bemmu :
> Thanks. Decided to move small images to another server, that seems to make
> it much less likely that Chrome would try to keep the connection open.

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Development server hangs when blobstore streams video

2010-09-06 Thread Niklasro(.appspot)


On Sep 3, 1:58 pm, Harry  wrote:
> Hi,
>
> I'm using an open source video player for playing uploaded video files
> (via Blobstore).
> If video file is small (less than a megabyte), it serves properly.
> But when the file is larger, it crashes the development server.
> Do I need to use the BlobStore reader to break up the file and serve
> it in segments? Or what else ?
> Has anyone managed to setup streaming videos using the blobstore?
>
> Thanks
I can upload and somewhat stream upto 50 mb video yes( Can you?).
Which format is best: mp4, flv, 3gp or other? Here's GAE serving mp4
direct output (no template) video byi
www.koolbusiness.com/serve/AMIfv965AEZaAqKhMrfPBo3ApE3es5abthDgYJEDdlL1iwL-XyptPaQVM4If19wuhPCh_2cbjDXFXuUTVudFwebAbN125RBXSqmMakIBU7ij2OSEZRNhYQ4M9DsWCUr9Lh9GR9prJnRmQXe6J93m2_zvwLZJMEHScKJl5gt-zbyXJSlvXCygMJ4

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.