Clearer handling of DNS lookup failures
Clearer handling of DNS lookup failures

This simply fixes up the code to:

- Print the return code of getaddrinfo() in the log messages
- Do not initiate the connect sequence on lookup failure (the way it was
  is entirely safe, it's just clearer if we don't call {E,C}_connect).

Change-Id: I3d7e0812a617db0d095255d35b129f1bdbf5256b
Reviewed-on: http://review.couchbase.org/44129
Tested-by: Mark Nunberg <e7d42768707bf23038325b0b68d4b577e5f6064a@haskalah.org>
Reviewed-by: Sergey Avseyev <87f6d5e4fd3644c3c20800cde7fd3ad1569370b3@gmail.com>

maxim-ky/libcouchbase,avsej/libcouchbase,avsej/libcouchbase,maxim-ky/libcouchbase,mody/libcouchbase,signmotion/libcouchbase,maxim-ky/libcouchbase,avsej/libcouchbase,maxim-ky/libcouchbase,signmotion/libcouchbase,avsej/libcouchbase,PureSwift/libcouchbase,mnunberg/libcouchbase,signmotion/libcouchbase,couchbase/libcouchbase,couchbase/libcouchbase,signmotion/libcouchbase,senthilkumaranb/libcouchbase,mody/libcouchbase,avsej/libcouchbase,PureSwift/libcouchbase,couchbase/libcouchbase,senthilkumaranb/libcouchbase,senthilkumaranb/libcouchbase,kojiromike/libcouchbase,mnunberg/libcouchbase,mnunberg/libcouchbase,avsej/libcouchbase,mody/libcouchbase,couchbase/libcouchbase,kojiromike/libcouchbase,kojiromike/libcouchbase,couchbase/libcouchbase,mnunberg/libcouchbase,senthilkumaranb/libcouchbase,PureSwift/libcouchbase,avsej/libcouchbase,kojiromike/libcouchbase,couchbase/libcouchbase,couchbase/libcouchbase,PureSwift/libcouchbase,mody/libcouchbase,mnunberg/libcouchbase