Multithread persistent socket server