Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BoltProtocolV1 is a container for inbound and outbound Netty-based connections. There exists a protocol instance for each neo4j client. Previously outbound connection, represented by ChunkedOutput class, was passed in as a parameter and never closed. This caused a native memory leak because connections allocate native byte buffers to put them into channel. This commit makes BoltProtocolV1 responsible for ChunkedOutput lifecycle. It is created in constructor and closed when the protocol instance is closed.
- Loading branch information
Showing
5 changed files
with
61 additions
and
27 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
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
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
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
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