fix sync bug at socket test