-// if ($host=='localhost')
-// stream_set_blocking($fp, 0); // just after connection switch to nonblocking mode
+ if ($host=='localhost' && !$unblocked++)
+ stream_set_blocking($fp, 0); // just after connection switch to nonblocking mode
+ usleep(10);