What happens to the daemon when half of the network request is disconnected?

the background is written in php. If a page is halfway through the ajax request (the background php has already started to execute), the network is disconnected, what happens to the background php program.

Php
Jul.12,2022

there is nothing wrong with the php program in the background, but the returned data cannot be received by the client.

if the background server is also offline and uses network requests, it will have an impact on the background program, depending on the situation.


php will continue to execute until exit


non-socket
if only the network of the client is down, it will not affect the processing of the server, but the client will always load data or cannot display the data.
socket
will generally have heartbeat detection, which also will not affect the relevant operations of the server.

Menu