Home > Article > Backend Development > php socket problem
How to judge whether the server has sent data back? If the connection to the server is successful, but there is no send data back in the server-side code (that is, the send function is blocked and does not return data), how should the client judge? Not counting the situation that is judged directly by comparing the returned data or the read data is empty!
How to judge whether the server has sent data back? If the connection to the server is successful, but there is no send data back in the server-side code (that is, the send function is blocked and does not return data), how should the client judge? Not counting the situation that is judged directly by comparing the returned data or the read data is empty!