RFR[15] JDK-8183369 : RFC unconformity of HttpURLConnection with proxy
Vyom Tiwari
vyommani at gmail.com
Thu Feb 13 14:26:40 UTC 2020
Hi Ravi/Daniel,
At my local env(REL 7) test is passing without fix as well. Although my
local repo contain some additional code changes but it is not related with
the current fix.
################
Test1 Passed with: Connect timed out
Test2 Passed with: Connect timed out
##################
Please change copyright year(2020) as well.
Thanks,
Vyom
On Thu, Feb 13, 2020 at 6:27 PM Daniel Fuchs <daniel.fuchs at oracle.com>
wrote:
> Hi,
>
> On 13/02/2020 10:52, Ravi Reddy wrote:
> > I notice that the `break` from the original code has not been
> >
> > reintroduced. I don't think that it is strictly needed, but did you give
> >
> > it any consideration?
> >
> > Chris , in original code since we were doing retry with direct
> > connection and not proceeding further with proxies by adding ‘break;’
> > , whereas now we are retrying with the proxy and if the connection fails
> > again , we have to make sure we do try with other proxies , hence I
> > haven’t reintroduced ‘break’ .
> >
>
> The break is not needed because it.hasNext() is false - but IMO it
> would make the code more readable - I had to stare at the code for some
> time to convince myself that it was not needed.
> (where I assume we're talking about introducing a `break;` after
> line 1213).
>
> Also can you please confirm that the test fails on the jdk mainline
> without your fix?
>
> best regards,
>
> -- daniel
>
>
--
Thanks,
Vyom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/net-dev/attachments/20200213/4133c970/attachment.htm>
More information about the net-dev
mailing list