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

Commit d3a68f6

Browse files
authored
Merge pull request #740 from tomas-c/fix/reactive-subscriptions-not-closed
fix: memory leak due to ReactiveApolloSubscriptionSession not closing
2 parents 2b30d1e + beb2839 commit d3a68f6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

graphql-kickstart-spring-webflux/src/main/java/graphql/kickstart/spring/webflux/apollo/ReactiveApolloSubscriptionSession.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ public boolean isOpen() {
2121
return session.isOpen();
2222
}
2323

24+
@Override
25+
public void close(String reason) {
26+
super.close(reason);
27+
session.close(reason);
28+
}
29+
2430
@Override
2531
public Map<String, Object> getUserProperties() {
2632
return session.getUserProperties();

0 commit comments

Comments
 (0)