guacamole-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Jumper (JIRA)" <>
Subject [jira] [Resolved] (GUACAMOLE-118) Migrate from select() to poll()
Date Sat, 12 Nov 2016 00:51:58 GMT


Michael Jumper resolved GUACAMOLE-118.
    Resolution: Fixed

> Migrate from select() to poll()
> -------------------------------
>                 Key: GUACAMOLE-118
>                 URL:
>             Project: Guacamole
>          Issue Type: Improvement
>          Components: guacd, libguac, RDP, SSH, Telnet
>            Reporter: Michael Jumper
>            Assignee: Michael Jumper
>             Fix For: 0.9.11-incubating
> From downstream [GUAC-1571|]:
> {quote}
> The various pieces of libguac and guacd use {{select()}} to wait for data on file descriptors,
but {{select()}} is inherently limited. It can only monitor file descriptors up to {{FD_SETSIZE}},
even if the intent is to monitor only a single file descriptor. *{{poll()}}, on the other
hand, has no such limitation.*
> Other options, like Linux's {{epoll()}} or BSD's {{kqueue()}}, are noteworthy for being
much more efficient for monitoring large numbers of file descriptors, but {{poll()}} should
be more than sufficient to replace current use of {{select()}}. We currently only ever monitor
one file descriptor per thread.
> {quote}

This message was sent by Atlassian JIRA

View raw message