$this->main_loop = TRUE;
while ($this->main_loop) {
+ $this->app->sess_cur_set(FALSE);
$this->curtime = time();
fprintf(STDERR, "IN LOOP: Current opened: %d pending_pages: %d\n", count($this->socks), count($this->pending_pages));
else {
$buf = fread($sock, 4096);
// if socket is closed
- if ($buf == FALSE || mb_strlen($buf, "ASCII") == 0) {
+ if ($buf == FALSE || feof($sock)) {
// close socket case
if ($buf == FALSE) {
printf("INFO: read return false\n");