bug(NetHttp): delete requests are silently retired if a socket is reset before getting the response #1471
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
HttpURLConnection will silently retry
DELETE
requests. This behavior is similar to other existing JDK bugs (JDK-6382788, JDK-6427251). google-http-java-client already contains a workaround (NetHttpRequest.java#L108-L112) for those requests which have a body, but does not account forDELETE
with an empty body.For Google Cloud Storage, while developing a conformance test suite for retry handling I ran into this bug and will submit a fix.
Environment details
1.40.0
and olderSteps to reproduce
Code example
See rerpo step 3
Stack trace
No relevant stack trace
External references such as API reference guides
The text was updated successfully, but these errors were encountered: