Multithreaded socket server on PHP