Http2: Resend requests on ContentReSend error #7174
authorChristian Kamm <mail@ckamm.de>
Wed, 5 Jun 2019 13:24:57 +0000 (15:24 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:51 +0000 (10:58 +0100)
commita7852e3aba13756662ae9db6ed4bc3da4700f41a
tree9084bb77669f65da1eff000f151f6f8d442d81a2
parentc335f69a65f597a6f74fc52b2f021f5c6d7b5e0a
Http2: Resend requests on ContentReSend error #7174

Since Qt does not yet transparently resend HTTP2 requests in some cases
we do it manually.

The test showed a problem where the initial non-200 reply would close
the target temporary file and the follow-up request couldn't store any
data. Removing that close() call is safe because there also is a
_saveBodyToFile flag that guards writes to the target file.
src/libsync/abstractnetworkjob.cpp
src/libsync/abstractnetworkjob.h
src/libsync/propagatedownload.cpp
test/syncenginetestutils.h