from http://code.google.com/appengine/docs/python/runtime.html
The SDK is single-threaded and doesn't even try to support concurrent access. The production server acts like a process and even if it didn't, you can't assume that multiple requests from the same client will hit the same application instance because they often won't. On Mar 25, 10:30 pm, wangscu <[email protected]> wrote: > hello guys! > i have a problem with GAE when i want to make a reverse_rpc > application.like i wait one request util the other request notify it . > so it can make the client like have a state . but i code like below. > here some problem when i inovke AddMessage() after GetMessage() , > the GetMessage() did not notified,util it time out . then then the > AddMessage() just can response . how does thes heppen? > > does appengine is just a thread? not a process so it make request > just like a list. or i code have some wrong? > > cv = threading.Condition() > > class GetMessage(webapp.RequestHandler): > def post(self): > cv.acquire() > cv.wait(4) > cv.release() > self.response.out.write("add") > > class AddMessage(webapp.RequestHandler): > def post(self): > cv.acquire() > cv.notfiyAll() > cv.release() > self.response.out.write("get") --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
