GNU bug report logs - #22789
25.1.50; In last master build https connections stop working

Previous Next

Package: emacs;

Reported by: José L. Doménech <j_l_domenech <at> yahoo.com>

Date: Wed, 24 Feb 2016 10:29:02 UTC

Severity: normal

Found in version 25.1.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Alain Schneble <a.s <at> realize.ch>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: j_l_domenech <at> yahoo.com, 22789 <at> debbugs.gnu.org
Subject: bug#22789: 25.1.50; In last master build https connections stop working
Date: Sat, 5 Mar 2016 19:32:08 +0100
Lars Magne Ingebrigtsen <larsi <at> gnus.org> writes:

> Alain Schneble <a.s <at> realize.ch> writes:
>
>> I have the impression that GnuTLS doesn't like it too much if we start
>> retrying the handshake many times before the socket is connected.  At
>> least on MS-Windows.  In nearly all of the cases of loading websites
>> with around 20 images, I observe arbitrary failures of
>> gnutls_try_handshake which usually end up with -10
>> GNUTLS_E_INVALID_SESSION.
>
> Try to add some printfs around the handshaking, and then strace Emacs
> while it's doing all this.  GNUTLS_E_INVALID_SESSION is usually the
> result of libgnutls losing control of the socket -- something else is
> writing or reading from the socket, and that makes the libgnutls state
> machine become unsynchronised.

Thank you.  I will try to do that.  I'll have to learn how to strace
first, though.  Sorry, that was the reason why I did not already strace
it (you suggested it already in a previous message, thanks!  Sorry for
not having followed your advice in the first place).

> If you see any reads/writes to the sockets outside the handshake section
> of the code, you'll have found the culprit.

Ok, thanks.  Hopefully, I'll have time to do it tomorrow...





This bug report was last modified 9 years and 132 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.