File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
driver/src/main/java/org/neo4j/driver/internal/async/pool Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 30
30
import java .util .concurrent .CompletionStage ;
31
31
import java .util .concurrent .ConcurrentHashMap ;
32
32
import java .util .concurrent .ConcurrentMap ;
33
+ import java .util .concurrent .TimeUnit ;
33
34
import java .util .concurrent .TimeoutException ;
34
35
import java .util .concurrent .atomic .AtomicBoolean ;
35
36
@@ -165,7 +166,10 @@ public CompletionStage<Void> close()
165
166
}
166
167
finally
167
168
{
168
- eventLoopGroup ().shutdownGracefully ();
169
+ // This is an attempt to speed up the shut down procedure of the driver
170
+ // Feel free return this back to shutdownGracefully() method with default values
171
+ // if this proves troublesome!!!
172
+ eventLoopGroup ().shutdownGracefully (200 , 15_000 , TimeUnit .MILLISECONDS );
169
173
}
170
174
}
171
175
return Futures .asCompletionStage ( eventLoopGroup ().terminationFuture () )
You can’t perform that action at this time.
0 commit comments