You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Chi Zhang (JIRA)" <ji...@apache.org> on 2015/10/16 15:28:05 UTC
[jira] [Commented] (MESOS-3520) Add an abstraction to manage the
life cycle of file descriptors.
[ https://issues.apache.org/jira/browse/MESOS-3520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14960687#comment-14960687 ]
Chi Zhang commented on MESOS-3520:
----------------------------------
https://reviews.apache.org/r/39186/
https://reviews.apache.org/r/39187/
[~bmahler] not sure if you saw these. I posted them a few days ago. There 2 are for the abstraction, then I will work on replacement.
> Add an abstraction to manage the life cycle of file descriptors.
> ----------------------------------------------------------------
>
> Key: MESOS-3520
> URL: https://issues.apache.org/jira/browse/MESOS-3520
> Project: Mesos
> Issue Type: Improvement
> Components: stout
> Reporter: Chi Zhang
> Assignee: Chi Zhang
>
> In order to avoid missing {{close()}} calls on file descriptors, or double-closing file descriptors, it would be nice to add a reference counted {{FileDescriptor}} in a similar way to what we've done for Socket. This will be closed automatically when the last reference goes away, and double closes can be prevented via internal state.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)