jquery $.ajax request remains pending

后端 未结 2 535
臣服心动
臣服心动 2021-01-17 04:49

I have made a simple chat application which uses long-polling approach using jquery,

function sendchat(){ 
// this code sends the message
$.ajax({
  url: \"s         


        
2条回答
  •  长情又很酷
    2021-01-17 05:02

    The issue was because of session locking;

    both send.php and listen.php files use session variables, so session is locked in listen.php file and the other file (here send.php file) can't be served after the session frees from serving another file ( here listen.php).

提交回复
热议问题