You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Tom (Jira)" <ji...@apache.org> on 2024/10/02 17:14:00 UTC
[jira] [Updated] (TINKERPOP-3112) Javascript: memory leak when server responds with error
[ https://issues.apache.org/jira/browse/TINKERPOP-3112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tom updated TINKERPOP-3112:
---------------------------
Description:
In the javascript sdk, when handling a socket message, we don't clear the response handler in the case where we handle server errors.
Link to source: [https://github.com/apache/tinkerpop/blob/b7c9ddda16a3d059b2a677f578f131a7124187b6/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/driver/connection.ts#L358-L364]
This causes a memory leak over time.
I opened a PR to fix the issue: https://github.com/apache/tinkerpop/pull/2807
was:
In the javascript sdk, when handling a socket message, we don't clear the response handler in the case where we handle server errors.
Link to source: [https://github.com/apache/tinkerpop/blob/b7c9ddda16a3d059b2a677f578f131a7124187b6/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/driver/connection.ts#L358-L364]
This causes a memory leak over time.
> Javascript: memory leak when server responds with error
> -------------------------------------------------------
>
> Key: TINKERPOP-3112
> URL: https://issues.apache.org/jira/browse/TINKERPOP-3112
> Project: TinkerPop
> Issue Type: Bug
> Reporter: Tom
> Priority: Major
>
> In the javascript sdk, when handling a socket message, we don't clear the response handler in the case where we handle server errors.
> Link to source: [https://github.com/apache/tinkerpop/blob/b7c9ddda16a3d059b2a677f578f131a7124187b6/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/driver/connection.ts#L358-L364]
> This causes a memory leak over time.
> I opened a PR to fix the issue: https://github.com/apache/tinkerpop/pull/2807
--
This message was sent by Atlassian Jira
(v8.20.10#820010)