[
https://issues.apache.org/jira/browse/THRIFT-1881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Randy Abernethy updated THRIFT-1881:
------------------------------------
Attachment: cppnbserverleak.patch
TNonblockingServer TConnection and thread leak patch
> TNonblockingServer does not release open connections or threads on shutdown
> ---------------------------------------------------------------------------
>
> Key: THRIFT-1881
> URL: https://issues.apache.org/jira/browse/THRIFT-1881
> Project: Thrift
> Issue Type: Bug
> Components: C++ - Library
> Affects Versions: 1.0
> Environment: Centos 6.3/Windows 7
> Reporter: Randy Abernethy
> Labels: patch
> Fix For: 1.0
>
> Attachments: cppnbserverleak.patch
>
>
> TNonblockingServer fails to release active TConnections on shutdown (per
> comments in the code). An important side effect is that the connection owned
> resources are not freed, in particular destructor clean up code in user
> defined service handlers. Also the interdependency between Threads and
> TNonblockingIOThreads via shared_ptr causes all of these objects to leak.
> This patch reduces the leaked heap blocks from > 100 to 1 on my test machines
> using an assortment of threads and terminal connection states.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira