Skip to content

Commit 9fe1fe9

Browse files
authored
Merge pull request #283 from aaron-steinfeld/fix-default-async-timeout
Set default async timeout to 30s
2 parents d941118 + 4d88e67 commit 9fe1fe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphql-java-servlet/src/main/java/graphql/kickstart/servlet/GraphQLConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public static class Builder {
135135
private boolean asyncServletModeEnabled = false;
136136
private Executor asyncExecutor = Executors.newCachedThreadPool(new GraphQLThreadFactory());
137137
private long subscriptionTimeout = 0;
138-
private long asyncTimeout = 30;
138+
private long asyncTimeout = 30000;
139139
private ContextSetting contextSetting = ContextSetting.PER_QUERY_WITH_INSTRUMENTATION;
140140
private Supplier<BatchInputPreProcessor> batchInputPreProcessorSupplier = NoOpBatchInputPreProcessor::new;
141141
private GraphQLResponseCacheManager responseCacheManager;

0 commit comments

Comments
 (0)