fix _connect function return value

While connneting to the log server, the return value 'true' can not be used as a socket.
Merge pull request #12 from tianchaijz/patch-1

fix _connect function return value