changeset 1626:08e81f0c1712

src/netif/ppp/ppp.c: Decrease sleep period in main thread from 250 to 1 ms.
author jani
date Wed, 05 May 2004 07:28:32 +0000
parents 40c53c83bbc4
children 1bf3513602bc
files packages/net/lwip_tcpip/current/ChangeLog packages/net/lwip_tcpip/current/src/netif/ppp/ppp.c
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/net/lwip_tcpip/current/ChangeLog
+++ b/packages/net/lwip_tcpip/current/ChangeLog
@@ -1,3 +1,9 @@
+2004-05-05  Jani Monoses <jani@iv.ro>
+
+	* src/netif/ppp/ppp.c: Decrease sleep period in main thread
+	from 250ms to 1ms. Was a leftover of debugging the code and
+	slowing things down.
+
 2004-05-04  Jani Monoses <jani@iv.ro>
 
 	* cdl/lwip_net.cdl
--- a/packages/net/lwip_tcpip/current/src/netif/ppp/ppp.c
+++ b/packages/net/lwip_tcpip/current/src/netif/ppp/ppp.c
@@ -1233,7 +1233,7 @@ static void pppMain(void *arg)
 			pppInProc(pd, p->payload, c);
 		} else {
 		    PPPDEBUG((LOG_DEBUG, "pppMainWakeup: unit %d sio_read len=%d returned %d\n", pd, p->len, c));
-		    sys_msleep(250); /* give other tasks a chance to run */
+		    sys_msleep(1); /* give other tasks a chance to run */
 		}
         }
     }