You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Lyndon Bauto (Jira)" <ji...@apache.org> on 2022/06/07 23:22:00 UTC

[jira] [Updated] (TINKERPOP-2740) first request suspend more than 9s when using gremlin-java-driver

     [ https://issues.apache.org/jira/browse/TINKERPOP-2740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lyndon Bauto updated TINKERPOP-2740:
------------------------------------
    Affects Version/s: 3.5.1

> first request suspend more than 9s when using gremlin-java-driver
> -----------------------------------------------------------------
>
>                 Key: TINKERPOP-2740
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2740
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: driver
>    Affects Versions: 3.4.3, 3.5.1, 3.6.0
>            Reporter: Stark Arya
>            Assignee: Lyndon Bauto
>            Priority: Critical
>
> when user use gremlin-driver in private cloud environment, 
> In AUTHENTICATE rsp func, client need reverse name lookup  through DNS, which will take more than 9s in certain env;  the calling code slice:
>  
> {code:java}
> Handler.GremlinSaslAuthenticationHandler.channelRead0       
>  saslClient.set(this.saslClient(this.getHostName(channelHandlerContext)));
>   
> private String getHostName(final ChannelHandlerContext channelHandlerContext) {
> return((InetSocketAddress)channelHandlerContext.channel().remoteAddress()).getAddress().getCanonicalHostName();
> }
> {code}
> there are many talks about this talks about this question.
> [https://www.thecodingforums.com/threads/very-slow-ssl-connection-from-win-to-linux.147274/#post-2959030]
> [https://stackoverflow.com/questions/3193936/how-to-disable-javas-ssl-reverse-dns-lookup]
>  
> I think we can rewrite the getHostName like this(use getHostAddress):
> {code:java}
> private String getHostName(final ChannelHandlerContext channelHandlerContext)  {
>     return ((InetSocketAddress)channelHandlerContext.channel().remoteAddress()).getAddress().getHostAddress();
> } {code}
> all versions seed affected
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)