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)
I don't understand. I go to http://localhost:8080/test10 and go to http://localhost:8080/, but MainPage not execute. After 10 seconds, MainPage return "Hello MainPage". GAE server not support multiple request?