Good afternoon, there is a php script that handles in the perpetual loop of a connection on the socket (sends parcels between clients), how to pause the script if clients don’t betray the parcels (so as not to load the system)?

  • and the script uses select / poll? - KoVadim
  • I save in an array the resources obtained through socket_accept. - 6at9l
  • If nothing is too clever, then the socket_accept in the absence of new connections will be simply blocked and the CPU resource consumption by the script will be minimal. - KoVadim

0