diff options
author | Giuseppe Castagno <giuseppe.castagno@acca-esse.eu> | 2016-07-23 12:55:20 +0200 |
---|---|---|
committer | Giuseppe Castagno <giuseppe.castagno@acca-esse.eu> | 2016-07-28 20:53:43 +0000 |
commit | 6dcd231892d80d2f130d1b9ebb9cf7dfa1115df1 (patch) | |
tree | 654263fbcb16c52dd4d336f05a77f42355c517e4 | |
parent | 211cb2dec3501a9ea224512ebedbc7cd1c46cd45 (diff) |
tdf#101094 (6) OPTIONS: Do not retry on HTTP error 501
HTTP error 501 the server tells us the used method is not
implemented, non need to retry.
Change-Id: I4529d2bc27a87e8f3463ded578c6c55e0701ae17
Reviewed-on: https://gerrit.libreoffice.org/27636
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Giuseppe Castagno <giuseppe.castagno@acca-esse.eu>
-rw-r--r-- | ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx b/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx index e1ff5d6d82cf..51feef68cf7b 100644 --- a/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx +++ b/ucb/source/ucp/webdav-neon/DAVResourceAccess.cxx @@ -1197,7 +1197,11 @@ bool DAVResourceAccess::handleException( const DAVException & e, int errorCount // if we have a bad connection try again. Up to three times. case DAVException::DAV_HTTP_ERROR: // retry up to three times, if not a client-side error. + // exception: error 501, server side error that + // tells us the used method is not implemented + // on the server, it's nonsense to insist... if ( ( e.getStatus() < 400 || e.getStatus() >= 500 ) && + ( e.getStatus() != 501 ) && errorCount < 3 ) { return true; |