Hi,
I'm playing with the Channel API at the moment. It's good! And by
playing, I mean implementing in a commercial product (of course).
It's all working happily, I just have a minor niggle that it's killing
my dev appserver. Basically, as soon as I call channel.open(), blamo!
The appserver goes down like a ton of bricks. So for an app that's
relying fairly heavily on the channel API, the dev appserver unusable
like this.
Here's a test page:
<html>
<head></head>
<body>
<script type="text/javascript" src="/_ah/channel/jsapi"></script>
<script>
channel = new goog.appengine.Channel('xyz');
socket = channel.open();
</script>
Hello
</body>
Here's the result:
===========================
Traceback (most recent call last):
---------------------------------------- File
"/usr/lib/python2.7/SocketServer.py", line 284, in
_handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 311, in process_request
self.shutdown_request(request)
File "/usr/lib/python2.7/SocketServer.py", line 459, in shutdown_request
request.shutdown(socket.SHUT_WR)
AttributeError: 'ChannelPresenceConnection' object has no attribute 'shutdown'
Exception happened during processing of request from ('0.1.0.10', 80)
----------------------------------------
ERROR 2011-11-16 00:55:41,127 dev_appserver_main.py:664] Error encountered:
Traceback (most recent call last):
File
"/opt/google/google_appengine/google/appengine/tools/dev_appserver_main.py",
line 657, in main
http_server.serve_forever()
File "/opt/google/google_appengine/google/appengine/tools/dev_appserver.py",
line 3527, in serve_forever
self.handle_request()
File "/opt/google/google_appengine/google/appengine/tools/dev_appserver.py",
line 3490, in handle_request
self._handle_request_noblock()
File "/usr/lib/python2.7/SocketServer.py", line 287, in
_handle_request_noblock
self.shutdown_request(request)
File "/usr/lib/python2.7/SocketServer.py", line 459, in shutdown_request
request.shutdown(socket.SHUT_WR)
AttributeError: 'ChannelPresenceConnection' object has no attribute 'shutdown'
Now terminating.
===========================
I'm using python 2.7 and sdk 1.6.0
I've just checked that if I switch back to python 2.5 (ie: runtime:
python instead of runtime: python27) then it seems to work. However,
that's not really an option, as I'm becoming fairly dependent on
python 2.7 now throughout my app.
Any workarounds, hacks, fixes even? Or just ideas?
--
Emlyn
http://my.syyn.cc - Synchonise Google+, Facebook, WordPress and Google
Buzz posts,
comments and all.
http://point7.wordpress.com - My blog
Find me on Facebook and Buzz
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.