Why are my XHR calls waiting for each other to return a response

前端 未结 1 489
终归单人心
终归单人心 2021-01-24 09:51

I have an iframe within a page that is continually polling the server for a session variable that is being actively updated by a \"main\" XHR.

So basically:

    <
相关标签:
1条回答
  • 2021-01-24 10:31

    Yes, default session manager (using files) locks the session file when you do session_start and releases it when you do session_write_close (or the scripts ends). Meanwhile other scripts trying to access session, wait to the release. a detailed article here or at the manual session-write-close

    0 讨论(0)
提交回复
热议问题