Long request blocks other requests in Apache and PHP

后端 未结 2 1760
死守一世寂寞
死守一世寂寞 2020-12-21 01:02

I have a request that takes about 1.5 minutes to complete, but when it does the request, it blocks all the other requests by the server. I\'m using Apache with mod_php. What

2条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-21 01:46

    [mod_telepathy]

    Do you use sessions? If so - while you haven't closed session in long script, others will wait for it.

    If you don't need session there all the time - you can close it with session_write_close()

    [/mod_telepathy]

提交回复
热议问题