diff options
author | Kai Sommerfeld <kso@openoffice.org> | 2010-06-14 11:44:03 +0200 |
---|---|---|
committer | Kai Sommerfeld <kso@openoffice.org> | 2010-06-14 11:44:03 +0200 |
commit | 27908970ce3c92d8be0a01f1d522500a0a1b7100 (patch) | |
tree | f4d5260983077691c46a1a846128746d50e0880a | |
parent | f9561071999b3c5c8505d648c14fff7b1bcd0caa (diff) |
#i112361# - Fixed DAVResourceAccess::handleException() to suggest retry on status code 0
-rw-r--r-- | ucb/source/ucp/webdav/DAVResourceAccess.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ucb/source/ucp/webdav/DAVResourceAccess.cxx b/ucb/source/ucp/webdav/DAVResourceAccess.cxx index 4ffc8dd88cf5..61eebe907608 100644 --- a/ucb/source/ucp/webdav/DAVResourceAccess.cxx +++ b/ucb/source/ucp/webdav/DAVResourceAccess.cxx @@ -1201,8 +1201,7 @@ sal_Bool DAVResourceAccess::handleException( 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. - if ( e.getStatus() > 0 && - ( e.getStatus() < 400 || e.getStatus() > 499 ) && + if ( ( e.getStatus() < 400 || e.getStatus() >= 500 ) && errorCount < 3 ) { return sal_True; |