mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-04-13 11:30:40 +02:00
The cause of this error seems to be that a failed request takes so long that a subsequent retry at the http level uses outdated headers. We're not sure if pgBackRest it to blame here (in one case a kernel downgrade fixed it, in another case an incorrect network driver was the problem) so add retries to hopefully deal with the issue if it is not too persistent. If SSL_write() has long delays before reporting an error then this will obviously affect backup performance. Reported by sean0101n, Tim Garton, Jesper St John, Aleš Zelený.