Re: HttpClient API expectations for connection failures

2018-06-12 Thread Jaikiran Pai
Hi Chris, On 12/06/18 8:05 PM, Chris Hegarty wrote: I filed the following JIRA to track this issue: https://bugs.openjdk.java.net/browse/JDK-8204864 I think that the most appropriate course of action is to consistently throw the IOException subtype, ConnectionException ( with the original

Re: HttpClient API expectations for connection failures

2018-06-12 Thread Chris Hegarty
Jaikiran, Apologies for the delay, I missed this email in my inbox. > On 12 Jun 2018, at 01:47, Jaikiran Pai wrote: > > Any thoughts? > I filed the following JIRA to track this issue: https://bugs.openjdk.java.net/browse/JDK-8204864 I think that the most appropriate course of action is to

Re: HttpClient API expectations for connection failures

2018-06-11 Thread Jaikiran Pai
Any thoughts? -Jaikiran On Sunday, June 3, 2018, Jaikiran Pai wrote: > Consider the following code: > > public class HttpClientTest { > public static void main(final String[] args) { > final HttpClient httpClient = HttpClient.newBuilder().build(); > final String targetURL = "