Home > front end >  Use service requests to visit tornado stuck problem
Use service requests to visit tornado stuck problem

Time:10-03

I made a tornado back-end services, mainly used for the simulation of an object in a square in the map moving scenes, details are as follows:

There are three url (that is, three interfaces) :

/display_map
/show_map_data
/update_map

Where
(1)/display_map jump straight to a display_map. The HTML, then the display_map. HTML inside use js constantly read the map data from the back-end websocket and object location information;

(2)/show_map_data for using websocket to send (1) as described in page map data and the object position information such as
(3)/update_map for access to the common Handler to change the map and the object position information

The problem is that I use the browser to http://127.0.0.1:8000/display_map first after the interface (the above said, will jump to a page, and receive from the backend websocket data), then use requests to the (3) to send a post request, found that requests is stuck,

Which friend met this kind of situation, is it because the websocket mode and normal mode cannot be used together?
  • Related