Reset stuck chunked uploads eventually #5344 (#5443)
authorckamm <mail@ckamm.de>
Fri, 13 Jan 2017 13:44:45 +0000 (14:44 +0100)
committerMarkus Goetz <markus@woboq.com>
Fri, 13 Jan 2017 13:44:45 +0000 (14:44 +0100)
commitd76e0ec6d8a730b34e1f522b377f20a9d0e0aa70
tree018b5b13409a5ddfd37d2f72e6f5ebfcf8679465
parent4a83f976e191a0289d50b792c146cb286aabadce
Reset stuck chunked uploads eventually #5344 (#5443)

Previously this wasn't happening for errors that were not
NormalErrors because they don't end up in the blacklist.

This revises the resetting logic to be independent of the
error blacklist and make use of UploadInfo::errorCount
instead.

412 errors should reset chunked uploads because they might be
indicative of a checksum error.

Additionally, server bugs might require that additional
errors cause an upload reset. To allow that, a new capability
is added that can be used to advise the client about this.
src/libsync/capabilities.cpp
src/libsync/capabilities.h
src/libsync/owncloudpropagator.cpp
src/libsync/propagateupload.cpp
src/libsync/propagateupload.h
src/libsync/propagateuploadng.cpp
src/libsync/propagateuploadv1.cpp
src/libsync/syncjournalfilerecord.cpp
test/CMakeLists.txt
test/syncenginetestutils.h
test/testuploadreset.cpp [new file with mode: 0644]