What happens when the server is in an infinite loop and the client stops?

后端 未结 3 1239
眼角桃花
眼角桃花 2021-01-11 15:13

I am trying to figure out how the \"talking\" between the server and the client is done.

So, when the server is generating an infinite loop, echoing

3条回答
  •  天命终不由人
    2021-01-11 15:56

    Even if your php script has an infinite loop, php.ini has a max_execution_time which will kill the process if the time exceeds.

    I am not sure how it will work when the client closes a connection. Apache might kill the process but I don't think PHP will be notified of the client's connection closing.

提交回复
热议问题