aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/library.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2012-10-18 08:46:24 +0200
committerTobias Brunner <tobias@strongswan.org>2012-10-18 12:26:00 +0200
commitb4f6c39e555c7c2a3d467e0b34fd7ea92aca26d7 (patch)
treee25d5075670cfbe4050001dfc072579099ef8d78 /src/libstrongswan/library.c
parent49e2d109a3a6dd715b9f7c742da0679e0801983d (diff)
downloadstrongswan-b4f6c39e555c7c2a3d467e0b34fd7ea92aca26d7.tar.bz2
strongswan-b4f6c39e555c7c2a3d467e0b34fd7ea92aca26d7.tar.xz
Terminate unused resolver threads after a timeout
Diffstat (limited to 'src/libstrongswan/library.c')
-rw-r--r--src/libstrongswan/library.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstrongswan/library.c b/src/libstrongswan/library.c
index b85ebeacb..a42d68cbc 100644
--- a/src/libstrongswan/library.c
+++ b/src/libstrongswan/library.c
@@ -27,7 +27,6 @@
#include <selectors/traffic_selector.h>
#define CHECKSUM_LIBRARY IPSEC_LIB_DIR"/libchecksum.so"
-#define HOST_RESOLVER_MAX_THREADS 2
typedef struct private_library_t private_library_t;
@@ -184,8 +183,8 @@ bool library_init(char *settings)
this->objects = hashtable_create((hashtable_hash_t)hash,
(hashtable_equals_t)equals, 4);
- this->public.hosts = host_resolver_create(HOST_RESOLVER_MAX_THREADS);
this->public.settings = settings_create(settings);
+ this->public.hosts = host_resolver_create();
this->public.proposal = proposal_keywords_create();
this->public.crypto = crypto_factory_create();
this->public.creds = credential_factory_create();