switched PHP from TPC to sockets