i found the reason make this happen maybe was that i use
wsgiref.handlers.CGIHandler().run(app) . run my app.
and there has a  wsgi_run_once = True in CGIHandler() so it only could
run one app on  one time.
   en maybe that was the problem . but when i use BaseCGIHandler() .
but it comes to ?
why?



On 3月26日, 下午8时56分, Andy Freeman <[email protected]> wrote:
> fromhttp://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to