[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#49449: 28: TLS connection never gets to "open" stage
From: |
Lars Ingebrigtsen |
Subject: |
bug#49449: 28: TLS connection never gets to "open" stage |
Date: |
Sat, 10 Jul 2021 18:57:45 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Mattias Engdegård <mattiase@acm.org> writes:
> 10 juli 2021 kl. 18.27 skrev Lars Ingebrigtsen <larsi@gnus.org>:
>
>> Hm... does reverting 234bf1b6363a3d5db8e73c422d87a0bf1aa4b2e3 help any
>> here?
>
> No, sorry. (Was worth a shot, though!)
Darn! Well, back to your patch:
- while ((ret = gnutls_handshake (state)) < 0)
+ if (non_blocking && proc->gnutls_handshakes_tried < 1)
{
- if (emacs_gnutls_handle_error (state, ret) == 0) /* fatal */
- break;
+ /* HACK: don't succeed the first time for nonblocking connections,
+ because the logic doesn't allow it (bug#49449). */
+ ret = GNUTLS_E_AGAIN;
I'm not super enthusiastic about this -- it'll artificially make
connections slower? The problem only seems to occur on Macos, so
it'd be interesting to find out why it doesn't happen on Linux...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#49449: 28: TLS connection never gets to "open" stage, Mattias Engdegård, 2021/07/06
- bug#49449: 28: TLS connection never gets to "open" stage, Lars Ingebrigtsen, 2021/07/07
- bug#49449: 28: TLS connection never gets to "open" stage, Mattias Engdegård, 2021/07/08
- bug#49449: 28: TLS connection never gets to "open" stage, Lars Ingebrigtsen, 2021/07/08
- bug#49449: 28: TLS connection never gets to "open" stage, Mattias Engdegård, 2021/07/08
- bug#49449: 28: TLS connection never gets to "open" stage, Lars Ingebrigtsen, 2021/07/10
- bug#49449: 28: TLS connection never gets to "open" stage, Mattias Engdegård, 2021/07/10
- bug#49449: 28: TLS connection never gets to "open" stage,
Lars Ingebrigtsen <=
- bug#49449: 28: TLS connection never gets to "open" stage, Mattias Engdegård, 2021/07/10
- bug#49449: 28: TLS connection never gets to "open" stage, Mattias Engdegård, 2021/07/10
- bug#49449: 28: TLS connection never gets to "open" stage, Eli Zaretskii, 2021/07/10
- bug#49449: 28: TLS connection never gets to "open" stage, Mattias Engdegård, 2021/07/10
- bug#49449: 28: TLS connection never gets to "open" stage, Eli Zaretskii, 2021/07/10
- bug#49449: 28: TLS connection never gets to "open" stage, Mattias Engdegård, 2021/07/10
- bug#49449: 28: TLS connection never gets to "open" stage, Eli Zaretskii, 2021/07/11
- bug#49449: 28: TLS connection never gets to "open" stage, Mattias Engdegård, 2021/07/11
- bug#49449: 28: TLS connection never gets to "open" stage, Eli Zaretskii, 2021/07/11
- bug#49449: 28: TLS connection never gets to "open" stage, Mattias Engdegård, 2021/07/11