The dev_appserver is single-threaded, and can only handle one request at a time. I'm not sure I understand why you want an handler that sleeps for 10 seconds; you can certainly test AJAX pages, they'll just run more slowly on the dev server than they'd be able to in production, assuming the production environment has enough instances running to handle multiple requests simultaneously.
On Jul 22, 5:48 pm, BL n102 <[email protected]> wrote: > In dev_appserver > > class MainPage(webapp.RequestHandler): > def get(self): > self.response.out.write("Hello MainPage") > > class TestPage(webapp.RequestHandler): > def get(self): > # 10 seconds > i = 1 > while True: > if i == 10: > break > time.sleep(1) > i = i + 1 > > application = webapp.WSGIApplication([ > ('/', MainPage) > ('/test10', TestPage), > ], debug=True) > > def main(): > wsgiref.handlers.CGIHandler().run(application) > #run_wsgi_app(application) > > if __name__ == "__main__": > main() > > I don't understand. I go tohttp://localhost:8080/test10and go > tohttp://localhost:8080/, but MainPage not response. After 10 seconds, > MainPage response "Hello MainPage" and TestPage response. GAE > dev_appserver doesn't support multiple request? > > How I test multiple AJAX requests? I will deploy to GAE server for > testing? It took too long!!! > > Demo > image:http://picasaweb.google.com/blockn102/GoogleAppEngineDev_appserverPro...http://stackoverflow.com/questions/3284196/gae-wsgiapplication-and-mu... -- 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.
