qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ken Giusti (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (QPID-5588) Python client fails if socket fd > FD_SETSIZE
Date Wed, 28 May 2014 18:59:01 GMT

     [ https://issues.apache.org/jira/browse/QPID-5588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ken Giusti resolved QPID-5588.
------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: Future)
                   0.28

> Python client fails if socket fd > FD_SETSIZE
> ---------------------------------------------
>
>                 Key: QPID-5588
>                 URL: https://issues.apache.org/jira/browse/QPID-5588
>             Project: Qpid
>          Issue Type: Bug
>          Components: Python Client
>    Affects Versions: 0.26, 0.27
>            Reporter: Ken Giusti
>            Assignee: Ken Giusti
>             Fix For: 0.28
>
>
> The python client uses select() to wait for socket activity.  select() is used because
it is available on most platforms.  However, select() has a hard limit on the _value_ of an
file descriptor.  If a socket is created that has a file descriptor > the value of FD_SETSIZE,
the following exception is thrown:
>   Exception in thread Thread-1:
>   Traceback (most recent call last):
>     File "/usr/lib64/python2.4/threading.py", line 442, in __bootstrap
>       self.run()
>     File "/usr/lib64/python2.4/threading.py", line 422, in run
>       self.__target(*self.__args, **self.__kwargs)
>     File "/usr/lib/python2.4/site-packages/qpid/selector.py", line 119, in run
>       rd, wr, ex = select(self.reading, self.writing, (), timeout)
>   ValueError: filedescriptor out of range in select()
> Note well: this is caused by the _value_ of the fd, not the number of open fds.  A process
that has many files open, then attempts to create a qpid connection, could hit this problem.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message