More Test 15 [CGF please comment]

Pierre A. Humblet Pierre.Humblet@ieee.org
Tue Apr 10 19:17:00 GMT 2001


As noted in an earlier message, the XWin Xserver generates a
huge number of connections on some platforms (some WinME in 
particular).
~: netstat -a | wc -l
   1322
Eventually this causes select() not to return. On other platforms
connections are also generated at a high rate but they don't linger
for long and their total number at any time remains reasonable.

The connections are not generated by the XServer code proper,
but inside the select() subroutine, which is called every 10 ms.
This seems to be the case even when the descriptors set in the 
mask are only network connections and not regular files.

Chris, is the generation of connections part of the design? It
isn't mentioned in select's section in the cygwin users' guide.
On the other hand I hope to be able to use /dev/windows to
only wake up when necessary (input present), thus reducing the 
call frequency. 
What Windows API is used to decide that input is present? 
[I know, I should look up the code, but not tonite].

Pierre 



More information about the Cygwin-xfree mailing list