Adding more logging to debug TcpSocket on Jenkins machine

Signed-off-by: Gene Walters <genewalt@amazon.com>
This commit is contained in:
Gene Walters
2021-10-21 06:51:49 -07:00
parent 43d1fbeedd
commit f7af0b8d52
@@ -68,14 +68,31 @@ namespace AzNetworking
{
Close();
if (!SocketCreateInternal()
|| !BindSocketForConnectInternal(address)
|| !(SetSocketNonBlocking(m_socketFd) && SetSocketNoDelay(m_socketFd)))
if (!SocketCreateInternal())
{
AZ_Warning("TcpSocket", false, "Tcp::Connect failed. SocketCreateInternal is false");
Close();
return false;
}
if (!BindSocketForConnectInternal(address))
{
AZ_Warning("TcpSocket", false, "Tcp::Connect failed. BindSocketForConnectInternal is false");
Close();
return false;
}
if (!(SetSocketNonBlocking(m_socketFd) && SetSocketNoDelay(m_socketFd)))
{
AZ_Warning("TcpSocket", false, "Tcp::Connect failed. SetSocketNonBlocking and SetSocketNoDelay is false");
Close();
return false;
}
return true;
}