From: Ulf Jasper <ulf.jasper@web.de>
To: "Cédric Chépied" <cedric.chepied@gmail.com>
Cc: 16543@debbugs.gnu.org
Subject: bug#16543: Newsticker retrieve method and https
Date: Sun, 28 Sep 2014 19:35:22 +0200 [thread overview]
Message-ID: <8761g7y7fp.fsf@web.de> (raw)
In-Reply-To: <52e30349.e5ecc20a.21cf.ffffddbf@mx.google.com>
> Symbol's function definition is void: lexical-let
My mistake. Sorry.
After studying the stack trace and doing some tests I found out that the
problem occurs only if
* `url-retrieve' is called from timers,
* the first url is of type https, the second of type http (as you mentioned)
* gnutls-cli is used for https retrieval (libgnutls works fine)
Here is a recipe for reproducing the error. I am preparing a fix now.
(defun debbug-16543-callback (status url)
"Dummy callback method for url-retrieve which ignores STATUS, shows URL.
Show also the current value of `url-gateway-method'."
(message "debbug-16543-callback url=%s url-gateway-method=%s"
url url-gateway-method))
(defun debbug-16543-call-url-retreive (url)
"Call `url-retrieve' for URL.
Forces the gnutls cli to be used."
(let ((old-gnutls-available-p (symbol-function 'gnutls-available-p)))
(unwind-protect
(ignore-errors
;; force usage of command line tls
(setf (symbol-function 'gnutls-available-p)
#'(lambda () nil))
;; call url-retrieve for the url
(url-retrieve url 'debbug-16543-callback (list url)))
;; restore original functions
(setf (symbol-function 'gnutls-available-p)
old-gnutls-available-p))))
(defun debbug-16543-check ()
"Try to reproduce bug#16543.
If bug occurs then the linuxfr.org is fetched via tls which will
cause Emacs to hang."
(interactive)
(mapc (lambda (url)
(run-at-time 0 nil 'debbug-16543-call-url-retreive url))
'("https://www.archlinux.org/feeds/news/"
"http://linuxfr.org/news.atom")))
next prev parent reply other threads:[~2014-09-28 17:35 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-25 0:20 bug#16543: 24.3; Newsticker retrieve method and https Cédric Chépied
2014-07-31 18:16 ` Ulf Jasper
2014-07-31 21:06 ` Cédric Chépied
2014-08-02 13:47 ` Ulf Jasper
2014-09-23 11:49 ` bug#16543: " Cédric Chépied
2014-09-23 17:39 ` Ulf Jasper
2014-09-24 6:27 ` Cédric Chépied
2014-09-24 17:53 ` Ulf Jasper
2014-09-26 6:18 ` Cédric Chépied
2014-09-28 17:35 ` Ulf Jasper [this message]
2014-09-28 18:04 ` Ulf Jasper
2014-09-29 8:19 ` Ulf Jasper
2014-09-29 10:57 ` Cédric Chépied
2014-09-29 16:14 ` Ulf Jasper
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=8761g7y7fp.fsf@web.de \
--to=ulf.jasper@web.de \
--cc=16543@debbugs.gnu.org \
--cc=cedric.chepied@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.