From 5633f4be856e1f0a951e39163cfffb76ea2fc94f Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Wed, 14 Dec 2016 15:47:20 +0000 Subject: [PATCH] tcpclient: bump the timeout from 0ms to 3000ms before we decide to die --- engine/shared/library/sharedNetwork/src/linux/TcpClient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/shared/library/sharedNetwork/src/linux/TcpClient.cpp b/engine/shared/library/sharedNetwork/src/linux/TcpClient.cpp index 8acf1289..e053c695 100755 --- a/engine/shared/library/sharedNetwork/src/linux/TcpClient.cpp +++ b/engine/shared/library/sharedNetwork/src/linux/TcpClient.cpp @@ -373,7 +373,7 @@ void TcpClient::queryConnect () pfd.fd = m_socket; pfd.events = POLLOUT; pfd.revents = 0; - int pollResult = poll(&pfd, 1, 0); + int pollResult = poll(&pfd, 1, 3000); if(pollResult > 0) { if (pfd.revents & POLLERR) @@ -483,7 +483,7 @@ void TcpClient::update() pfd.fd = m_socket; pfd.events = POLLIN|POLLHUP; pfd.revents = 0; - int pollResult = poll (&pfd, 1, 0); + int pollResult = poll (&pfd, 1, 3000); // POLLERR is mutually exclusive with POLLIN and POLLHUP. // POLLIN and POLLHUP are not consistent cross-platform. Additionally, // a POLLHUP doesn't mean that there's not data available. The best,