VikingBot
VikingBot copied to clipboard
100% cpu usage
VikingBot used to work great; now one core is always on. The only thing that changed is the php version I believe (5.6.8).
The cause seems to be the " $data = fgets($this->socket, 256); " call, which is blocking (and polling the read() function on the socket - as revealed by systrace) instead of timing out and returning 0 bytes.
The code seems to set the socket as non blocking, but I see it looping endlessly.
Hmm, it is not quite unlikely that this might be a PHP bug if everything worked fine before you upgraded PHP. Are you connection to a server with SSL or is it an unencrypted connection?
/Tor