Modify ↓
#17882 closed defect (fixed)
Java HTTP Client is retrying POST requests on its own after 5 minutes
Reported by: | Don-vip | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 19.06 |
Component: | Core | Version: | |
Keywords: | http post upload | Cc: |
Description
Just discovered this:
If a misbehaving remote host doesn't reply to a HTTP POST request within 5 minutes then HTTPClient will silently retry the POST. POST is non-idempotent, but in order to maintain backwards compatibility the
sun.net.http.retryPost
property was introduced, with a default value of "true": javabug:6382788
String retryPost = props.getProperty("sun.net.http.retryPost"); if (retryPost != null) { retryPostProp = Boolean.parseBoolean(retryPost); } else { retryPostProp = true; }
We use POST for API diff upload and should make sure to disable this parameter to avoid an unwanted automatic retry.
Attachments (0)
Note:
See TracTickets
for help on using tickets.
In 15222/josm: