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

Commit ed36772

Browse files
committed
Merge remote-tracking branch 'origin/master'
# Conflicts: # gradle.properties
2 parents c39eaed + 03cb247 commit ed36772

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

graphql-spring-boot-autoconfigure/src/main/java/com/oembedler/moon/graphql/boot/GraphQLServletProperties.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ public class GraphQLServletProperties {
3636

3737
private boolean exceptionHandlersEnabled = false;
3838

39+
private long subscriptionTimeout = 0;
40+
3941
public String getMapping() {
4042
return mapping != null ? mapping : "/graphql";
4143
}
@@ -95,4 +97,12 @@ public boolean isExceptionHandlersEnabled() {
9597
public void setExceptionHandlersEnabled(boolean exceptionHandlersEnabled) {
9698
this.exceptionHandlersEnabled = exceptionHandlersEnabled;
9799
}
100+
101+
public long getSubscriptionTimeout() {
102+
return subscriptionTimeout;
103+
}
104+
105+
public void setSubscriptionTimeout(long subscriptionTimeout) {
106+
this.subscriptionTimeout = subscriptionTimeout;
107+
}
98108
}

graphql-spring-boot-autoconfigure/src/main/java/com/oembedler/moon/graphql/boot/GraphQLWebAutoConfiguration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ public GraphQLHttpServlet graphQLHttpServlet(GraphQLInvocationInputFactory invoc
260260
.with(graphQLObjectMapper)
261261
.with(listeners)
262262
.with(graphQLServletProperties.isAsyncModeEnabled())
263+
.with(graphQLServletProperties.getSubscriptionTimeout())
263264
.build();
264265
return GraphQLHttpServlet.with(configuration);
265266
}

0 commit comments

Comments
 (0)