fix remote servers connect error

fix remote gearman worker connect error and the process is hang_up
解决了远程gearman worker 工作时因为连接失败导致进程处于挂起状态