set error to GSOCK_TIMEOUT if the socket timed out (modified and extended patch 1303554)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -726,7 +726,10 @@ int GSocket::Read(char *buffer, int size)
|
||||
|
||||
/* If the socket is blocking, wait for data (with a timeout) */
|
||||
if (Input_Timeout() == GSOCK_TIMEDOUT)
|
||||
{
|
||||
m_error = GSOCK_TIMEDOUT;
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Read the data */
|
||||
if (m_stream)
|
||||
|
||||
Reference in New Issue
Block a user