cdegroc commented on code in PR #3078:
URL: https://github.com/apache/tinkerpop/pull/3078#discussion_r2015880997


##########
gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/AbstractChannelizer.java:
##########
@@ -148,9 +144,25 @@ public void init(final ServerGremlinExecutor 
serverGremlinExecutor) {
         configureSerializers();
 
         // configure ssl if present
-        sslContext = settings.optionalSsl().isPresent() && 
settings.ssl.enabled ?
-                Optional.ofNullable(createSSLContext(settings)) : 
Optional.empty();
-        if (sslContext.isPresent()) logger.info("SSL enabled");
+        sslFactory = settings.optionalSsl().isPresent() && 
settings.ssl.enabled ?
+                
Optional.ofNullable(createSSLFactoryBuilder(settings).withSwappableTrustMaterial().withSwappableIdentityMaterial().build())
 : Optional.empty();
+
+        if (sslFactory.isPresent()) {
+            logger.info("SSL enabled");
+            // Every minute, check if keyStore/trustStore were modified, and 
if they were,
+            // reload the SSLFactory which will reload the underlying 
KeyManager/TrustManager that Netty SSLHandler uses.
+            scheduledExecutorService.schedule(

Review Comment:
   **🔨 warning:** ‏Should be 
[scheduleAtFixedRate](https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ScheduledThreadPoolExecutor.html#scheduleAtFixedRate-java.lang.Runnable-long-long-java.util.concurrent.TimeUnit-)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to