Opened 7 weeks ago

Closed 7 weeks ago

#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:


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 property was introduced, with a default value of "true": javabug:6382788


String retryPost = props.getProperty("");
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)

Change History (1)

comment:1 Changed 7 weeks ago by Don-vip

Resolution: fixed
Status: newclosed

In 15222/josm:

fix #17882 - Disable automatic HTTP POST retry after 5 minutes, see

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.