From: Richard Stallman <rms@gnu.org>
To: "Riccardo Murri" <riccardo.murri@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: url-retrieve-synchronously randomly fails on https URLs (patch included)
Date: Mon, 29 Oct 2007 05:22:26 -0400 [thread overview]
Message-ID: <E1ImQpG-0001Wa-LS@fencepost.gnu.org> (raw)
In-Reply-To: <1c34ba170710280540g5b2a9983o33abfcba2843d95@mail.gmail.com> (riccardo.murri@gmail.com)
Unless I got it all wrong, this is much more complicated than the
original three-liner; I wonder if it is worth going this way instead of
a very simple patch that could still be buggy on rare occasions.
It is a bad thing for software to be unreliable. We should write it
so that it works every time, not just 99.9% of the time.
It is worth paying this small complexity to make it work right.
Besides, the code can be simpler.
+ ;; advance point to after all informational messages that
+ ;; `openssl s_client' and `gnutls' print
+ (lexical-let ((attempts tls-end-of-info-match-attempts)
+ (start-of-data nil))
Why not ordinary let?
+ (not (= 0 (if (> attempts 0) (decf attempts) -1)))
I think there should not be a limit -- it should just keep looping
until it finds what it is looking for.
+ (unless (accept-process-output process 1)
+ (sit-for 1)))
I think there is no need for sit-for. accept-process-output will wait.
+ (warn
+ "`open-tls-stream': Could not match `tls-end-of-info'
regexp in %d attempts."
+ tls-end-of-info-match-attempts)))
If you get rid of the counter, you won't need this either.
next prev parent reply other threads:[~2007-10-29 9:22 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-27 10:47 url-retrieve-synchronously randomly fails on https URLs (patch included) Riccardo Murri
2007-10-27 23:41 ` Richard Stallman
2007-10-28 12:40 ` Riccardo Murri
2007-10-29 9:22 ` Richard Stallman [this message]
2007-10-29 20:48 ` Riccardo Murri
2007-10-30 5:24 ` Richard Stallman
2007-10-30 10:23 ` Riccardo Murri
2007-11-02 15:02 ` Richard Stallman
2007-11-02 22:18 ` Reiner Steib
2007-11-02 22:37 ` Miles Bader
2007-11-02 22:50 ` Lennart Borgman (gmail)
2007-11-03 5:48 ` tomas
2007-11-03 9:35 ` Andreas Schwab
2007-11-04 1:26 ` Glenn Morris
2007-11-05 10:26 ` Simon Josefsson
2007-11-05 15:01 ` Stefan Monnier
2007-11-05 15:04 ` Simon Josefsson
[not found] ` <E1IpDzF-0003i4-EJ@fencepost.gnu.org>
2007-11-08 13:20 ` Simon Josefsson
2007-11-06 11:22 ` Riccardo Murri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1ImQpG-0001Wa-LS@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=riccardo.murri@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.