fix checking error in tcp client socket
fix checking error in tcp client socket

When on blocking connect when the first address from getaddrinfo fails and
the second do not succeed successfully immediately (EOINPROGRESS) the tcp
client should wait but it throwed the postponed error message from the first
try.

maekitalo/cxxtools,maekitalo/cxxtools,maekitalo/cxxtools,maekitalo/cxxtools