When dirmngr is configured to use an LDAP proxy, it apparently doesn't honor the
LDAP timeout value. I tested this with Kontact from enterprise 35 branch (rev.
914162), gpgme 1.1.6 and dirmngr 1.0.2-svn293 with the following dirmngr
configuration:
ldap-proxy:0:0:use HOST for LDAP queries:1:1:HOST:::"localhost%3a1389 only-ldap-proxy:0:1:do not use fallback hosts with --ldap-proxy:0:0::::1 ldaptimeout:16:0:set LDAP timeout to N seconds:3:3:N:100::10
And a make-shift proxy like this:
nc -l -p 1389 -c "sleep 240; nc -o dirmngr-ldap-dump ca.intevation.de 389"
Once dirmngr tries to fetch a CRL via ldap it connects to the proxy and then all
of Kontact is blocked until the proxy finally delivers the result 4m later, even
though there's an LDAP timeout of only 10s.