|
From: | Stephane Lesage |
Subject: | [lwip-devel] [bug #28716] select() returns 0 after waiting for less than 1 ms |
Date: | Sat, 23 Jan 2010 01:37:24 +0000 |
User-agent: | Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) |
URL: <http://savannah.nongnu.org/bugs/?28716> Summary: select() returns 0 after waiting for less than 1 ms Project: lwIP - A Lightweight TCP/IP stack Submitted by: slesage Submitted on: sam 23 jan 2010 02:37:23 CET Category: None Severity: 3 - Normal Item Group: Faulty Behaviour Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Planned Release: lwIP version: CVS Head _______________________________________________________ Details: I had problems with select() with timeout after accept() returning 0 immediately when the client send data immediately. There's a bug in lwip_select() in select.c line 1003. The return value of sys_sem_wait_timeout() should be tested against SYS_ARCH_TIMEOUT and not 0... _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?28716> _______________________________________________ Message posté via/par Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |