Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SocketConnector timeout cannot be configured #3613

Closed
agherardi opened this issue Sep 19, 2014 · 1 comment · Fixed by #4087
Closed

SocketConnector timeout cannot be configured #3613

agherardi opened this issue Sep 19, 2014 · 1 comment · Fixed by #4087

Comments

@agherardi
Copy link
Contributor

Hi,
Even though method tryToConnect in SocketConnector.java (see https://github.com/hazelcast/hazelcast/blob/master/hazelcast/src/main/java/com/hazelcast/nio/tcp/SocketConnector.java) takes a connection timeout parameter as input, that parameter is hard-coded to 0 - i.e., use OS default timeout - for IPv4 addresses and to 3,000 milliseconds for IPv6 addresses.

Therefore, there is currently no way to change the socket connect timeout via a configuration property.

Is this by design?

Thanks.

@agherardi
Copy link
Contributor Author

Hi,
I saw that you marked this as an Enhancement. Does it mean that you agree that adding a socket connect timeout configuration property is a good idea?

Until the enhancement is implemented, is there a workaround?

@mdogan mdogan added this to the 3.4 milestone Nov 14, 2014
@gurbuzali gurbuzali self-assigned this Nov 18, 2014
gurbuzali pushed a commit that referenced this issue Nov 18, 2014
Made SocketConnector timeout configurable (Patch for #3613)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants