[ https://issues.apache.org/jira/browse/GEODE-10349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17545889#comment-17545889 ]
Jacob Barrett commented on GEODE-10349: --------------------------------------- Then lower the connection timeout. DO NOT use {{InetAddress.isReachable()}}. The method makes a best effort check for availability of the host, not a listening port on a host. It is likely to report false positives and negatives depending on the current state of the host or any firewalls between client and server. > Client connects to a new server socket should check its availability > --------------------------------------------------------------------- > > Key: GEODE-10349 > URL: https://issues.apache.org/jira/browse/GEODE-10349 > Project: Geode > Issue Type: Bug > Components: client/server > Reporter: Xiaojian Zhou > Assignee: Xiaojian Zhou > Priority: Major > Labels: pull-request-available > > When client connects to a new server (or restarted server), it might > encounter SocketTimeoutException which could take 59 seconds. > To speed up, the idea is to check if the server address's is reachable with > smaller timeout. > If the server's address is not reachable, no need to block waiting for 59 > seconds (DEFAULT_SOCKET_CONNECT_TIMEOUT). -- This message was sent by Atlassian Jira (v8.20.7#820007)