Close connection with long poll, jQuery-ajax

Background
I use a Tornado-like server with support for long polls. Each new web page that a user comes in with sets up a lengthy polling on the server as follows:

$.ajax({
    type: 'GET',
    url: "/mylongpollurl/",
    dataType: 'application/json',
    success: function(json) {
        // I do stuff here
    },
    error: function(xhr, errText, ex) {
        // If timeout I send a new long-poll request
    }
});

Problem
Now I will rely on the data that I receive from Fiddler, tracking all requests made from my browser (FF at the moment).

  • Page 1 and a long poll request, now idle on the server side.
  • I click on the link to page 2 and this page loads and sets up a long polling request, BUT the long polling request from page 1 still does not work on the server side (according to Fiddler).

, , (, , ?)


 - Tornado ( epoll), . , . , - ( ).
 - , - ajax, , , ...
 - , , , ( , ) , ( ).


- MyGGaN

+3
1

, " " Fiddler. , Fiddler , , .

, , , . , , , IE.

+4

Source: https://habr.com/ru/post/1719333/


All Articles