jquery-Ajax call on tornado handlers waits for pervious ajax call to return
Posted
by harshh
on Stack Overflow
See other posts from Stack Overflow
or by harshh
Published on 2009-12-09T08:28:06Z
Indexed on
2010/05/22
4:10 UTC
Read the original article
Hit count: 485
jquery-ajax
|tornado
Hey All.
I recently started testing TornadoWeb for a home-project, which uses jquery getJSON function to call my tornado handlers. And found something strange, which i seek an explanation for.
I fire an ajax request for Handler1 on tornado, and in some cases request for Handler2 is initiated before Handler1 returns. It appears from development-server logs, and firebug console-debugging, that Handler2 request waits for Handler1 request to finish, and then return. So basically, XHR call is waiting for earlier XHRs. They are supposed to be asynchronous/non-blocking right?? Or am i missing something.
You can check the test-case environment called testtornado at http://github.com/harshh/Harsh-Projects/ with main.py as server triggering file.
I would appreciate help from anyone who can throw some light on this.
© Stack Overflow or respective owner