[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
(ITS#8078) The configured TimeOut in the Back-meta overlay is not used during the connction phase
- To: openldap-its@OpenLDAP.org
- Subject: (ITS#8078) The configured TimeOut in the Back-meta overlay is not used during the connction phase
- From: elecharny@apache.org
- Date: Thu, 12 Mar 2015 14:26:13 +0000
- Auto-submitted: auto-generated (OpenLDAP-ITS)
Full_Name: Emmanuel L.charny
Version: 2.4.40
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (90.46.56.240)
the back-meta overlay meta_back_init_one_conn() method set the timeout to get
the result to a value which is not the one configured (network-timeout AFAIU),
as shown in this portion of the code (line 469 in conn.c) :
LDAP_BACK_TV_SET( &tv );
retry:;
rc = ldap_result( msc->msc_ld, msgid, LDAP_MSG_ALL, &tv, &res );
which uses :
#define LDAP_BACK_RESULT_TIMEOUT (0)
#define LDAP_BACK_RESULT_UTIMEOUT (100000)
#define LDAP_BACK_TV_SET(tv) \
do { \
(tv)->tv_sec = LDAP_BACK_RESULT_TIMEOUT; \
(tv)->tv_usec = LDAP_BACK_RESULT_UTIMEOUT; \
} while ( 0 )
The timeout is then set to 100ms, which might be too low when the remote server
is 'far'.