fix bug: socket hang up error