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

Clifford Jansen resolved PROTON-2211.
-------------------------------------
    Resolution: Fixed

> Epoll proactor leaks file descriptors
> -------------------------------------
>
>                 Key: PROTON-2211
>                 URL: https://issues.apache.org/jira/browse/PROTON-2211
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>    Affects Versions: proton-c-0.31.0
>            Reporter: Clifford Jansen
>            Assignee: Clifford Jansen
>            Priority: Blocker
>             Fix For: proton-c-0.31.0
>
>
> Separation of responsibility of closing a file descriptor (which could 
> generate an event) and registering/deregistering it within epoll (to watch 
> for or ignore events) was strong in the previous proactor version. 
> Rationalizing the data structures for space efficiency and overall clarity 
> obscured this in the new version, and the removal of a "duplicate" fd 
> reference made it possible to forget the fd to close.
> From inspection, a simple short term fix is to remember the fd that is being 
> leaked and close it when suitable.
> The longer term fix should perhaps rationalize the current async nature of 
> start_polling() and stop_polling() and serialize it through the new scheduler 
> mechanism in the newer epoll proactor implementation.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to