Good evening. New to php, decided to use socket, but how can I not understand what load creates an open socket on the server while waiting for a connection? or how much is spent machine resources?

  • Good question. PHP sockets are rarely used (this was at least until the appearance of socket support in JS). There simply is an infinite while loop - I will also wait for the answer. But you can check it by means of analytics of windows / linux resources - Goncharov Alexander

0