Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

fix: memory leak due to ReactiveApolloSubscriptionSession not closing #740

Conversation

tomas-c
Copy link

@tomas-c tomas-c commented Oct 19, 2021

A memory leak is possible because ReactiveApolloSubscriptionSession does not call close on the ReactiveWebSocketSubscriptionSession that it owns.

Currenctly ReactiveSubscriptionWebSocketHandler calls ReactiveApolloSubscriptionSession.close here. As ReactiveApolloSubscriptionSession does not override the default implementation this call falls back to DefaultSubscriptionSession.close.

A memory leak was possible because ReactiveApolloSubscriptionSession did
not call close on the ReactiveWebSocketSubscriptionSession that it
owned.
@tomas-c
Copy link
Author

tomas-c commented Oct 19, 2021

Some tests are failing the "Publish Unit Test Results" step with the following message:

 requests.exceptions.RetryError: HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /repos/graphql-java-kickstart/graphql-spring-boot/check-runs (Caused by ResponseError('too many 403 error responses'))

Don't think this is related to the code changes.

@BlasiusSecundus
Copy link

No, there was apparently a breaking change in the action used there. See PR #737

@oliemansm
Copy link
Member

@tomas-c Can you pull in the latest changes from master to let it rebuild? The build issues should be fixed now.

@tomas-c
Copy link
Author

tomas-c commented Jan 24, 2022

@oliemansm Yup, merged with latest master and checks are passing now

@oliemansm oliemansm added this to the 12.0.1 milestone Jan 24, 2022
@oliemansm oliemansm merged commit d3a68f6 into graphql-java-kickstart:master Jan 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants