couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Newson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-1295) couch_util:collate/3 leaks ports
Date Thu, 22 Sep 2011 11:59:26 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-1295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112495#comment-13112495
] 

Robert Newson commented on COUCHDB-1295:
----------------------------------------

drv_port() stores the port in the process dictionary and reuses it so unless ports aren't
freed when processes die, there's no leak. I'm pretty confident erlang cleans up open ports
and file descriptors associated with processes, but I can't verify right now.

> couch_util:collate/3 leaks ports
> --------------------------------
>
>                 Key: COUCHDB-1295
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1295
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>            Reporter: Yurii Rashkovskii
>
> couch_util:collate/3 opens a port but never closes nor links to it. Unless I am missing
something, it leaks ports. The most trivial solution that comes to mind is to link to the
said port but I had problems with it as those processes didn't seem to die therefore port
leakage continued.
> Explicitly closing port after every operation seems to do the trick so far, but I admit
it is an ugly solution.
> Any ideas?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message