[Pkg-owncloud-commits] [owncloud-client] 42/115: CSync: Add a 30 second connect (not read) timeout

Sandro Knauß hefee-guest at moszumanska.debian.org
Fri Aug 29 22:03:58 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 64a70255226bc9941bc73f8f60146fef675245a5
Author: Markus Goetz <markus at woboq.com>
Date:   Fri Aug 15 15:54:13 2014 +0200

    CSync: Add a 30 second connect (not read) timeout
---
 csync/src/csync_owncloud.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/csync/src/csync_owncloud.c b/csync/src/csync_owncloud.c
index 74d166d..860d25e 100644
--- a/csync/src/csync_owncloud.c
+++ b/csync/src/csync_owncloud.c
@@ -432,6 +432,8 @@ static int dav_connect(csync_owncloud_ctx_t *ctx,  const char *base_url) {
         ne_set_read_timeout(ctx->dav_session.ctx, ctx->dav_session.read_timeout);
         DEBUG_WEBDAV("Timeout set to %u seconds", ctx->dav_session.read_timeout );
     }
+    // Should never take more than some seconds, 30 is really a max.
+    ne_set_connect_timeout(ctx->dav_session.ctx, 30);
 
     snprintf( uaBuf, sizeof(uaBuf), "Mozilla/5.0 (%s) csyncoC/%s",
               csync_owncloud_get_platform(), CSYNC_STRINGIFY( LIBCSYNC_VERSION ));

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list