From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Riccardo Murri Newsgroups: gmane.emacs.devel Subject: Re: url-retrieve-synchronously randomly fails on https URLs (patch included) Date: Tue, 6 Nov 2007 11:22:49 +0000 (UTC) Message-ID: References: <20071027104716.E9BA773545@tanja.localdomain> <1c34ba170710280540g5b2a9983o33abfcba2843d95@mail.gmail.com> <1c34ba170710291348v36cb5b83ybbb4a7f988f486b1@mail.gmail.com> <87tzo12djt.fsf@mocca.josefsson.org> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1194358244 594 80.91.229.12 (6 Nov 2007 14:10:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Nov 2007 14:10:44 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 06 15:10:48 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IpP8R-00036u-EO for ged-emacs-devel@m.gmane.org; Tue, 06 Nov 2007 15:10:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IpP8G-0000Z3-Ei for ged-emacs-devel@m.gmane.org; Tue, 06 Nov 2007 09:10:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IpP8D-0000Xt-LF for emacs-devel@gnu.org; Tue, 06 Nov 2007 09:10:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IpP8A-0000RS-42 for emacs-devel@gnu.org; Tue, 06 Nov 2007 09:10:17 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IpP8A-0000RG-1X for emacs-devel@gnu.org; Tue, 06 Nov 2007 09:10:14 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IpP89-00041N-JZ for emacs-devel@gnu.org; Tue, 06 Nov 2007 09:10:13 -0500 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1IpP7y-0002oK-3q for emacs-devel@gnu.org; Tue, 06 Nov 2007 14:10:02 +0000 Original-Received: from adsl203-145-182.mclink.it ([213.203.145.182]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Nov 2007 14:10:02 +0000 Original-Received: from riccardo.murri by adsl203-145-182.mclink.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Nov 2007 14:10:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: adsl203-145-182.mclink.it User-Agent: slrn/0.9.8.1pl1 (Debian) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:82662 Archived-At: Il 2007-11-05, Simon Josefsson ha scritto: >> + ;; XXX: we have no way of knowing if the STARTTLS handshake >> + ;; sequence has completed successfully, because `gnutls` will >> + ;; only report failure. >> + (sequence line-start "\*\*\* Starting TLS handshake\n")))))) > > I also installed the following patch, because I think the above comment > was incorrect. > That comment's purpose was to point out that there might be cases in which `open-tls-stream' will exit successfully, returning the buffer to the caller (as all of `tls-success' and `tls-end-of-info' matched), *still* the TLS connection failed. -- Riccardo Murri, via Galeazzo Alessi 61, 00176 Roma