deleted call to stream_set_blocking on the main socket cos non-blocking socket was using 100% of cpu core