这是indexloc提供的服务,不要输入任何密码
Skip to content

[Bug] Maximum number of client reached with opening display too often #36

@Inc0n

Description

@Inc0n

With the current implementation of opening a new *mut xlib::Display via xlib::XOpenDisplay(ptr::null()) will result in the program to panic, once simulate has been called to often.
Panic message:

Maximum number of client reached

It seems that the maximum client is 256 by default, ref stackexchange link.

A better way to approach this, might be having a Struct named Rdev for example, which will hold the reference to 3 x11 display object, one for simulate, two for listen.

struct Rdev {
    display: *mut xlib:Display,
    ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions