Eli Zaretskii writes: > I already tried increasing the limit, it doesn't help: the new limit > is reached. Interestingly, when the initial connection is made, for > the page itself, the handshake completes within 10 attempts. But the > subsequent connections, presumably for images, don't succeed, for some > reason. Yes that's what I observed as well. But also that GnuTLS returns -10 GNUTLS_E_INVALID_SESSION for some of the connections quite early. Interestingly, I had the impression that it behaves better if the subsequent handshakes are triggered only after the socket is connected. But that may be by chance. And could therefore be a red herring. See patch: