Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • libxcb libxcb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 39
    • Issues 39
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 11
    • Merge requests 11
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xorgxorg
  • lib
  • libxcblibxcb
  • Merge requests
  • !24

xcb_in: Allow file descriptors to arrive early

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Julian Orth requested to merge mahkoh/libxcb:pending-fds into master Oct 17, 2021
  • Overview 7
  • Commits 1
  • Pipelines 0
  • Changes 1

The xserver sends file descriptors independently of replies. If the server sends many events to the client, it is possible for the reply to arrive several messages after the file descriptor.

The code already supported this but only if the intermediate messages ended in partial packets.

With this patch, file descriptors will be buffered indefinitely until they are consumed by a reply. There is still a limit of 16 file descriptors imposed by the XCB_MAX_PASS_FD constant. If this limit is exceeded, we call _xcb_conn_shutdown.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: pending-fds