Guodian: fix socket code.