简体   繁体   中英

Queries to server during longpolling

I make longpolling query to, say, http://polling.site.com/polling . At the same time I need to make several other queries to server, say http://site.com/polling/?d=cr . But they are quenued and are fineshed only when longpolling connection finishes. Picture related 在此处输入图片说明

I use nginx/apache2, php5.

How can I make several queries during longpolling?

The reason was in the inability to use php session in two connections. So I used session_write_close in longpolling loop and at this time second query completes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM