forked from hazelcast/hazelcast
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dont keep the endpoint reference to clean client resources
We are scheduling a task to clean client resources after some time(60 seconds). Eventough endpoint is removed, we were keeping a reference to it via this task. This was causing unncessary leak for 60 seconds since the endpoint keeps reference to heavy objects like `connection`. With this pr, we are passing only necessary fields objects of client endpoint to task to avoid keeping reference to the client endpoint itself.
- Loading branch information
sancar
committed
Sep 13, 2018
1 parent
4432bdd
commit e3632c6
Showing
1 changed file
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters