Non-blocking connect for dirmngr

Patrick Brunschwig patrick at enigmail.net
Sat Jun 10 09:13:49 CEST 2017


On 09.06.17 21:02, Filipp Gunbin wrote:
> Hi, I'm on macOS 10.12.5, built gnupg master today and getting 20 sec
> timeout before getting error.
> 
> This is what watchgnupg outputs:
> 
> [client at fd 4 connected (local)]
>   4 - 21:56:32 dirmngr[91488]: listening on socket '/Users/fgunbin/.gnupg/S.dirmngr'
>   4 - 21:56:33 dirmngr[91489.0]: permanently loaded certificates: 49
>   4 - 21:56:33 dirmngr[91489.0]:     runtime cached certificates: 0
>   4 - 21:56:33 dirmngr[91489.0]:            trusted certificates: 49 (48,0,0,1)
>   4 - 21:56:33 dirmngr[91489.6]: handler for fd 6 started
>   4 - 21:56:33 dirmngr[91489.6]: DBG: chan_6 -> # Home: /Users/fgunbin/.gnupg
>   4 - 21:56:33 dirmngr[91489.6]: DBG: chan_6 -> # Config: /Users/fgunbin/.gnupg/dirmngr.conf
>   4 - 21:56:33 dirmngr[91489.6]: DBG: chan_6 -> OK Dirmngr 2.1.22-beta44 at your service
>   4 - 21:56:33 dirmngr[91489.6]: connection from process -1 (501:20)
>   4 - 21:56:37 dirmngr[91489.6]: DBG: chan_6 <- WKD_GET --quick --submission-address -- foo at iki.fi
>   4 - 21:56:37 dirmngr[91489.6]: DBG: dns: fallback resolution order, files then DNS
>   4 - 21:56:37 dirmngr[91489.6]: DBG: dns: libdns initialized
>   4 - 21:56:57 dirmngr[91489.6]: DBG: dns: getsrv(_openpgpkey._tcp.iki.fi): Server indicated a failure
>   4 - 21:56:57 dirmngr[91489.6]: command 'WKD_GET' failed: Server indicated a failure <Unspecified source>
>   4 - 21:56:57 dirmngr[91489.6]: DBG: chan_6 -> ERR 219 Server indicated a failure <Unspecified source>

I got a timeout after 4 seconds on my macOS 10.12.5

-Patrick



More information about the Gnupg-devel mailing list