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
-~----------~----~----~----~------~----~------~--~---