fixed socket read/write multi-thread