aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/dirmngr.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-12-09 11:50:22 +0000
committerWerner Koch <[email protected]>2010-12-09 11:50:22 +0000
commit1486dec17bfb4b60f49da2ea7a342abef33f2201 (patch)
treebcec62b0deef70ab50ae5631ad9501cbe637e0f7 /dirmngr/dirmngr.c
parentChange timer tick interval under Wince (diff)
downloadgnupg-1486dec17bfb4b60f49da2ea7a342abef33f2201.tar.gz
gnupg-1486dec17bfb4b60f49da2ea7a342abef33f2201.zip
Change dirmngr timer under W32CE.
Fix trustdb open problem under W32CE.
Diffstat (limited to 'dirmngr/dirmngr.c')
-rw-r--r--dirmngr/dirmngr.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/dirmngr/dirmngr.c b/dirmngr/dirmngr.c
index 9525e2e12..966c657d0 100644
--- a/dirmngr/dirmngr.c
+++ b/dirmngr/dirmngr.c
@@ -241,11 +241,15 @@ static int active_connections;
/* The timer tick used for housekeeping stuff. For Windows we use a
longer period as the SetWaitableTimer seems to signal earlier than
- the 2 seconds. */
-#ifdef HAVE_W32_SYSTEM
-#define TIMERTICK_INTERVAL (4)
+ the 2 seconds. CHECK_OWN_SOCKET_INTERVAL defines how often we
+ check our own socket in standard socket mode. If that value is 0
+ we don't check at all. All values are in seconds. */
+#if defined(HAVE_W32CE_SYSTEM)
+# define TIMERTICK_INTERVAL (60)
+#elif defined(HAVE_W32_SYSTEM)
+# define TIMERTICK_INTERVAL (4)
#else
-#define TIMERTICK_INTERVAL (2) /* Seconds. */
+# define TIMERTICK_INTERVAL (2)
#endif
/* This union is used to avoid compiler warnings in case a pointer is