decremented timeout, we have to find a better algorithm for knowing when we don't have to wait further for data

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2001-08-24 19:55:57 +00:00
parent 51a229c65f
commit 62e83765c2
2 changed files with 4 additions and 4 deletions

View File

@ -267,7 +267,7 @@ GSocket *GSocket_new()
socket->m_server = FALSE;
socket->m_stream = TRUE;
socket->m_non_blocking = FALSE;
socket->m_timeout = 10*1000;
socket->m_timeout = 1*1000;
/* 10 sec * 1000 millisec */
socket->m_takesEvents = TRUE ;
socket->m_mac_events = wxMacGetNotifierTable() ;
@ -1473,7 +1473,7 @@ GSocketError _GSocket_Input_Timeout(GSocket *socket)
{
OTResult state ;
OTByteCount sz = 0 ;
state = OTGetEndpointState(socket->m_endpoint);
state = OTGetEndpointState(socket->m_endpoint);
OTCountDataBytes( socket->m_endpoint , &sz ) ;
if ( state == T_INCON || sz > 0 )

View File

@ -267,7 +267,7 @@ GSocket *GSocket_new()
socket->m_server = FALSE;
socket->m_stream = TRUE;
socket->m_non_blocking = FALSE;
socket->m_timeout = 10*1000;
socket->m_timeout = 1*1000;
/* 10 sec * 1000 millisec */
socket->m_takesEvents = TRUE ;
socket->m_mac_events = wxMacGetNotifierTable() ;
@ -1473,7 +1473,7 @@ GSocketError _GSocket_Input_Timeout(GSocket *socket)
{
OTResult state ;
OTByteCount sz = 0 ;
state = OTGetEndpointState(socket->m_endpoint);
state = OTGetEndpointState(socket->m_endpoint);
OTCountDataBytes( socket->m_endpoint , &sz ) ;
if ( state == T_INCON || sz > 0 )