GNU bug report logs - #23982
[master] Treat errno EINPROGRESS and ENOTCONN as EAGAIN for async connection

Previous Next

Package: emacs;

Reported by: Jun Hao <jun_hao <at> aol.com>

Date: Thu, 14 Jul 2016 14:18:01 UTC

Severity: normal

Tags: patch

Merged with 22929, 23225, 23503

Found in version 25.1.50

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 23982 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Jun Hao <jun_hao <at> aol.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 23982 <at> debbugs.gnu.org,
 Ted Zlatanov <tzz <at> lifelogs.com>, npostavs <at> users.sourceforge.net
Subject: Re: [master] Treat errno EINPROGRESS and ENOTCONN as EAGAIN for async
 connection
Date: Tue, 26 Jul 2016 09:35:04 +0200
Thanks for the bug report and patch. Two thoughts:

* Passing GNUTLS_NONBLOCK to gnutls_init seems like a worthy change, but 
why does Emacs need to fiddle with an errno function? Surely GnuTLS 
should do the right thing with async connections, without Emacs having 
to insert a shim. Isn't this a bug in GnuTLS?

* The proposed patch uses gnutls_transport_set_errno_function, 
introduced in GnuTLS 2.12.0. Emacs master currently requires only GnuTLS 
2.6.6 or later. Would it be wise to bump the prerequisite version from 
2.6.6 to 2.12.0? I'll CC: this to Ted Zlanatov to see what he thinks.






This bug report was last modified 8 years and 283 days ago.

Previous Next


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