This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: More Test 15 [CGF please comment]


Chris,

The Xserver code contains the following line
 i = Select (MaxClients, &LastSelectMask, NULL, NULL, wt);
wt is set to 10 ms and Select is #defined as select()
By using gdb and netstat, I observe 
1) that the call to select() generates a new connection
2) that, after a while, a large number of connections exist
3) that after about ~ 2000 calls select() doesn't return.
All of that on WinMe. I have no idea why it is so, either.

Pierre

At 11:55 PM 4/10/2001 -0400, Christopher Faylor wrote:
>On Tue, Apr 10, 2001 at 10:17:14PM -0400, Pierre A. Humblet wrote:
>>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.
>
>I don't know why connections would be generated.  I am not even
>sure what you are talking about.
>
>cgf
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]