Make sure POST requests are retried even when connections are closed. (#3875)
By default, the Apache HTTP client does not retry POST requests in those cases because they are not deemed idempotent. But for reconciliation they are, so they should be retried. Closes #3664.
This commit is contained in:
parent
e664712a70
commit
36589e5b1c
@ -210,5 +210,13 @@ public class HttpClient {
|
||||
}
|
||||
return interval;
|
||||
}
|
||||
|
||||
/**
|
||||
* Even our POST requests should be retried, they are deemed idempotent
|
||||
*/
|
||||
@Override
|
||||
public boolean handleAsIdempotent(final HttpRequest request) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user