You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Justin Ross (JIRA)" <ji...@apache.org> on 2016/11/04 15:01:07 UTC
[jira] [Updated] (PROTON-586) Driver spins when a listener accepts
a socket while FDs are all in use
[ https://issues.apache.org/jira/browse/PROTON-586?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Ross updated PROTON-586:
-------------------------------
Assignee: Alan Conway
> Driver spins when a listener accepts a socket while FDs are all in use
> ----------------------------------------------------------------------
>
> Key: PROTON-586
> URL: https://issues.apache.org/jira/browse/PROTON-586
> Project: Qpid Proton
> Issue Type: Bug
> Components: proton-c
> Affects Versions: 0.7
> Reporter: Ted Ross
> Assignee: Alan Conway
>
> when operating as a server and using listeners, if the number of open FDs is equal to the limit on FDs, accept will return an error and the driver will spin at 100% cpu until an FD is freed up for the incoming connection.
> Suggested fix:
> If "accept" returns a "too many open files" error (ENFILE or EMFILE), the listening socket should be taken out of the read-fds for a time (say one second) before retrying.
> If this is not practical to do in Proton, the driver should provide hooks for the encapsulating application to use to provide this holdoff.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org