You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by "Michael Jumper (JIRA)" <ji...@apache.org> on 2016/11/11 20:18:01 UTC

[jira] [Created] (GUACAMOLE-118) Migrate from select() to poll()

Michael Jumper created GUACAMOLE-118:
----------------------------------------

             Summary: Migrate from select() to poll()
                 Key: GUACAMOLE-118
                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-118
             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|https://glyptodon.org/jira/browse/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
(v6.3.4#6332)