how to synchronize data between two connects
Thanks Prusse,It works now - I have increased time limit from 1 to 200 on function queue(s)
I'm using a python tool called "Ajaxterm"(http://wiki.kartbuilding.net/index.php/Ajaxterm). After setting it up. The problem  , I face is,when type few chars - they appear as jumbled character.For example,When i type "abcde" it may come as "cdbea" - but no character missing.   From my understanding - I tried to debug the python code,it seems like ajaxterm internal server (qweb - QWebRequest Request Handler) processes the request it.There seems to be nothing wrong with it.
The problem is (I assume) - From .js file (javascript) to ajaxterm.py , for every character i type a connect() is initiated and thus  characters typed later may be arriving sooner than the previously typed character. 
How should I make sure,character appear in the order it was typed. 
(The problem is does (mostly) happen only when network is slow)
Thanks for any help.