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 | d93f23bba675b89ca993584f435a1e5838ec144e (patch) | |
tree | ffbd114a5fdac12b87346627100b7b310b063bb4 /ucb/source | |
parent | 53663a5b057105466ceaa1de74bd866229a21e66 (diff) |
#i112361# - Fixed DAVResourceAccess::handleException() to suggest retry on status code 0
Diffstat (limited to 'ucb/source')
-rw-r--r-- | ucb/source/ucp/webdav/DAVResourceAccess.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ucb/source/ucp/webdav/DAVResourceAccess.cxx b/ucb/source/ucp/webdav/DAVResourceAccess.cxx index 71d4eabdbf..61eebe9076 100644 --- a/ucb/source/ucp/webdav/DAVResourceAccess.cxx +++ b/ucb/source/ucp/webdav/DAVResourceAccess.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -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; |