[JAVA-1265] AsynchronousSocketChannel connect and socket timeout Created: 10/Jun/14 Updated: 30/Mar/22 |
|
| Status: | Backlog |
| Project: | Java Driver |
| Component/s: | Async |
| Affects Version/s: | 3.0.0 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Ross Lawley | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
AsynchronousSocketChannel connect essentially is blocking and you can't apply the socket timeout setting. You can: a) get a future from connect and then call get(timeout, unit) with the timeout the result to honour the socket timeout but that is blocking. See: http://stackoverflow.com/questions/20752756/how-to-set-java-nio-asynchronoussocketchannel-connect-timeout essentially this functionality is not available and implementing it would be complex |