RFR: 8274779: HttpURLConnection: HttpClient and HttpsClient incorrectly check request method when set to POST [v3]
Michael McMahon
michaelm at openjdk.java.net
Wed Oct 20 14:52:50 UTC 2021
On Fri, 15 Oct 2021 15:11:06 GMT, Michael McMahon <michaelm at openjdk.org> wrote:
> Just wondering what actually happens if you encounter this bug? I guess that the post will fail somehow because it has been given a closed connection. If so, would it be possible to write the test to simulate that behavior?
>
> So, say you initially do a HTTP request that succeeds (creating a cached connection). Then, somehow close the connection independent of the keep alive cache. Then attempt the streaming post which will either succeed or fail depending whether the bug is fixed or not.
We discussed this off line, and it doesn't seem to be feasible. I'm happy with the fix as is
-------------
PR: https://git.openjdk.java.net/jdk/pull/5964
More information about the net-dev
mailing list