VikingBot icon indicating copy to clipboard operation
VikingBot copied to clipboard

100% cpu usage

Open enricoros opened this issue 9 years ago • 1 comments

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.

enricoros avatar May 01 '15 23:05 enricoros

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

Ueland avatar May 03 '15 19:05 Ueland