Bug 206955
Summary: | Can't create more than 256 connections to X display | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Bastien Nocera <bnocera> | ||||
Component: | xorg-x11 | Assignee: | Adam Jackson <ajax> | ||||
Status: | CLOSED DUPLICATE | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 4.0 | CC: | desktop-bugs, dmair, tao, xgl-maint | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2007-10-11 20:06:59 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 234251, 325581 | ||||||
Attachments: |
|
Description
Bastien Nocera
2006-09-18 14:15:03 UTC
Created attachment 136545 [details]
test.c
XIDs are the global namespace for objects in the X protocol. Clients are assigned a range when they connect, and subsequent allocations happen from that pool. The XID itself is allocated as follows: 3 bits reserved (for no good reason) N bits of client ID M bits of resource ID where N is defined by the MAXCLIENTS define in the server source. Which means right now, we have 8 bits for client ID and 21 for resource ID. This patch would move one bit to the client ID space, which has the side effect of reducing the number of resources per client from 2millionish to 1millionish. This is probably not a problem. However we may want to add an option somewhere to allow the user to switch this at server startup. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. Built as xorg-x11 6.8.2-1.EL.25. MODIFIED. Not fixed. Used the shell loop: for a in `seq 1 256`; do xlogo & done hit the limit at 253. I have some clients already opened. Starting a new one explicitly says the limit was hit. *** This bug has been marked as a duplicate of 230217 *** |