GNU bug report logs -
#49449
28: TLS connection never gets to "open" stage
Previous Next
Full log
View this message in rfc822 format
Mattias Engdegård <mattiase <at> acm.org> writes:
> 10 juli 2021 kl. 18.27 skrev Lars Ingebrigtsen <larsi <at> 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
This bug report was last modified 3 years and 311 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.