fix _connect function return value

While connneting to the log server, the return value 'true' can not be used as a socket.