FineAndDandy opened a new issue #2459:
URL: https://github.com/apache/accumulo/issues/2459
**Describe the bug**
TTimeoutTransport.create(hostPort, timeoutMillis) should also apply the
timeoutMillis to the Socket creation. As-is the code will wait an infinite
amount of time to create the Socket connection and then apply timeoutMillis to
the input and output stream only.
**Versions (OS, Maven, Java, and others, as appropriate):**
- Affected version(s) of this project: 1.9, 2.0, 2.1
**To Reproduce**
Steps to reproduce the behavior (or a link to an example repository that
reproduces the problem):
1. Create a connection using TTimeoutTransport to a host that is waiting for
connections but not completing the handshake, specifying a timeout of 2000,
TTimeoutTransport.create(someHostAndPort, 2000);
2. Observe that the call hangs beyond 2000ms
**Expected behavior**
It would make sense to also apply the timeoutMillis to the Socket creation.
--
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]