]> git.saurik.com Git - wxWidgets.git/commitdiff
decremented timeout, we have to find a better algorithm for knowing when we don't...
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 24 Aug 2001 19:55:57 +0000 (19:55 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 24 Aug 2001 19:55:57 +0000 (19:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/gsocket.c
src/mac/gsocket.c

index 54114255567e56373bf3aa48d1b80e568ed29a99..49b8a92142e10f6f5f72d1e457e90fdbfed147ee 100644 (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 )
index 54114255567e56373bf3aa48d1b80e568ed29a99..49b8a92142e10f6f5f72d1e457e90fdbfed147ee 100644 (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 )