resolve socket server reuse confict. modify unitest