Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shutdown executor and provide new endpoint constructor #388

Merged
merged 1 commit into from
Dec 4, 2021

Conversation

tdraier
Copy link
Contributor

@tdraier tdraier commented Oct 13, 2021

Hi,

I ran into different issues when trying to use GraphQLWebsocketServlet within an OSGi container :
The first issue (which should also happen in any container) is about the executor started in ApolloSubscriptionKeepAliveRunner, which is never shut down, preventing the JVM to correctly quit. I've added shutdown callbacks in SubscriptionProtocolFactory / ApolloSubscriptionConnectionListener / ApolloSubscriptionKeepAliveRunner
Second issue is the GraphQLWebsocketServlet initialization - there's no way to pass explicit SubscriptionProtocolFactory, and prevent the creation of default instances, which was required in our case.

@oliemansm oliemansm added this to the 12.1.0 milestone Dec 4, 2021
@oliemansm oliemansm merged commit d12d23a into graphql-java-kickstart:master Dec 4, 2021
@oliemansm
Copy link
Member

Thanks @tdraier !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants