From 5bf2314b9f64099cd4e88b8f3498d986d97e1ac6 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Mon, 15 Aug 2011 17:46:04 +0200 Subject: Handle timeout during sss_ldap_init_send In some cases, where there would be no response from the LDAP server, there would be no R/W events on the LDAP fd, so sdap_async_sys_connect_done would never be called. This patch adds a tevent timer that cancels the connection after SDAP_NETWORK_TIMEOUT seconds. --- src/util/sss_ldap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util/sss_ldap.h') diff --git a/src/util/sss_ldap.h b/src/util/sss_ldap.h index ab890293c..4b4d9c1bd 100644 --- a/src/util/sss_ldap.h +++ b/src/util/sss_ldap.h @@ -53,7 +53,7 @@ struct tevent_req *sss_ldap_init_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, const char *uri, struct sockaddr_storage *addr, - int addr_len); + int addr_len, int timeout); int sss_ldap_init_recv(struct tevent_req *req, LDAP **ldap, int *sd); #endif /* __SSS_LDAP_H__ */ -- cgit