GumpacG commented on code in PR #3466:
URL: https://github.com/apache/tinkerpop/pull/3466#discussion_r3463332804


##########
gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/Connection.java:
##########
@@ -136,6 +161,59 @@ public Connection(final URI uri, final ConnectionPool 
pool) throws ConnectionExc
         }
     }
 
+    /**
+     * Configures the connection establishment timeout on the supplied {@link 
Bootstrap}. The {@code connectTimeout}
+     * is expressed in milliseconds and bounds the TCP connection setup 
(including the SSL handshake) performed by
+     * {@code b.connect()}. It is applied via Netty's {@link 
ChannelOption#CONNECT_TIMEOUT_MILLIS}.
+     */
+    static void configureConnectTimeout(final Bootstrap b, final long 
connectTimeout) {
+        b.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, (int) connectTimeout);

Review Comment:
   Converted to int



-- 
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