I seem to have a recurring problem with memory leaks in Connection.php at line number 260. I run a game server, and every now and then, the program crashes with the following message:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 523800 bytes)
$encodedData = $this->hybi10Encode($payload, $type, $masked);
in the send subroutine. If my memory serves me right, it has always happened in the same line. Do you have any idea what might be causing this bug? Normally if I view memory usage, it doesn’t get much past 1 or 2 MB, so something is causing a major memory leak, and I don't think it is my application. Thanks!