GNU bug report logs - #23225
25.1.50; url-retrieve-synchronously having trouble with some https URLs

Previous Next

Package: emacs;

Reported by: joaotavora <at> gmail.com (João Távora)

Date: Tue, 5 Apr 2016 18:31:01 UTC

Severity: normal

Tags: patch

Merged with 22929, 23503, 23982

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


View this message in rfc822 format

From: Tao Fang <fangtao0901 <at> gmail.com>
To: Chunyang Xu <xuchunyang.me <at> gmail.com>
Cc: João Távora <joaotavora <at> gmail.com>, Alexis <flexibeast <at> gmail.com>, 23225 <at> debbugs.gnu.org, Noam Postavsky <npostavs <at> users.sourceforge.net>
Subject: bug#23225: 25.1.50; url-retrieve-synchronously having trouble with some https URLs
Date: Sun, 31 Jul 2016 00:44:30 +0800
  I've tested on macOS Sierra 10.12(16A254g)/Xcode 7.3.1(7D1014), emacs
(compiled from git master --with-gnutls) and gnutls-3.5.2 (compiled from
source), and same problem here.
  
> gnutls.c: [2] WRITE: -1 returned from 0x12, errno: 57
  errno 57 is ENOTCONN (defined in /usr/include/sys/errno.h) in the case
of that after called connect() with asynchronous socket, when TCP
three-way handshake was not accomplished, calling write() will return
ENOTCONN. I'm not sure if this conform POSIX.1 since the manual(man 2
write) mentions standards and AFAIK [EAGAIN] or [EWOULDBLOCK] would be a
better choice.
  And gnutls didn't properly handle error 57(ENOTCONN) in errno_to_gerr()
(lib/buffers.c), I've fired a bug report with above message at:
  https://gitlab.com/gnutls/gnutls/issues/117

  Back to emacs, and after some searching and compiling test, it seems
that this commit cause the master branch broken on OS X:

    63efcc268635dea78c6bd80749eae4ee2c72d717
    Author:     John Wiegley <johnw <at> newartisans.com>
    AuthorDate: Fri Mar 11 13:33:32 2016 -0800
    Commit:     John Wiegley <johnw <at> newartisans.com>
    CommitDate: Fri Mar 11 13:33:32 2016 -0800
    
    Parent:     b4fbd69 ; Merge from origin/emacs-25
    Parent:     facb5e2 Update Emacs manual section related to character
    folding
    Containing: master
    Follows:    emacs-25.0.92 (3006)

this problem doesn't exist before that, and current emacs-25 branch is
also good.




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

Previous Next


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