[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - ucb/source
Giuseppe Castagno
giuseppe.castagno at acca-esse.eu
Wed Dec 16 09:01:14 PST 2015
ucb/source/ucp/webdav-neon/webdavcontent.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 5616d22b57a9a5e57d545e912e029162a230829b
Author: Giuseppe Castagno <giuseppe.castagno at acca-esse.eu>
Date: Sun Nov 22 17:14:09 2015 +0100
Fix tdf#90700 Notify connect timeout early.
Throws exception to manage timeout early in the first connection
sequence.
Change-Id: Ibf87f9d7607c808692509c694127266b6f542014
Reviewed-on: https://gerrit.libreoffice.org/20196
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
(cherry picked from commit 95958755cbbf8c6026b878703400d5d9ec1e6c98)
Reviewed-on: https://gerrit.libreoffice.org/20739
Reviewed-by: Giuseppe Castagno <giuseppe.castagno at acca-esse.eu>
Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos at collabora.co.uk>
diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.cxx b/ucb/source/ucp/webdav-neon/webdavcontent.cxx
index d00e2e8..98d56e13 100644
--- a/ucb/source/ucp/webdav-neon/webdavcontent.cxx
+++ b/ucb/source/ucp/webdav-neon/webdavcontent.cxx
@@ -3497,6 +3497,14 @@ Content::ResourceType Content::getResourceType(
*networkAccessAllowed = *networkAccessAllowed
&& shouldAccessNetworkAfterException(e);
}
+ // if the two net events below happen, something
+ // is going on to the connection so break the command flow
+ if ( ( e.getError() == DAVException::DAV_HTTP_TIMEOUT ) ||
+ ( e.getError() == DAVException::DAV_HTTP_CONNECT ) )
+ {
+ cancelCommandExecution( e, xEnv );
+ // unreachable
+ }
}
}
More information about the Libreoffice-commits
mailing list