﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
17882	Java HTTP Client is retrying POST requests on its own after 5 minutes	Don-vip	team	"Just discovered [https://twitter.com/gareth/status/1147841559972536320 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''
Indeed:
https://github.com/unofficial-openjdk/openjdk/blob/2357b5fc925a96e53e6e9a84230be327424ad1ce/src/java.base/share/classes/sun/net/www/http/HttpClient.java#L167
{{{
#!java
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."	defect	closed	normal	19.06	Core		fixed	http post upload	
