From: Noam Postavsky <npostavs@gmail.com>
To: Ernesto Alfonso <erjoalgo@gmail.com>
Cc: 39158@debbugs.gnu.org
Subject: bug#39158: 26.1; url-retrieve-synchronously possible race condition
Date: Fri, 17 Jan 2020 12:46:01 -0500 [thread overview]
Message-ID: <85v9pa7z8m.fsf@gmail.com> (raw)
In-Reply-To: <CAOckuXAhVQ+79U7ZyZ9NYXbm_sAnZT5XmpRs5JXsd76OUe=JNA@mail.gmail.com> (Ernesto Alfonso's message of "Thu, 16 Jan 2020 17:04:06 -0800")
unarchive 34341
forcemerge 34341 39158
quit
Ernesto Alfonso <erjoalgo@gmail.com> writes:
> url-retrieve-synchronously unexpectedly returns an empty buffer:
>
> emacs -Q --eval '(with-current-buffer (url-retrieve-synchronously "
> https://google.com") (print (buffer-string)))' --batch
> Contacting host: google.com:443
>
> ""
>
> If I add (sit-for 2) in url-retrieve-synchronously after the (url-retrieve
> ...) call:
>
> (setq asynch-buffer
> (url-retrieve url (lambda (&rest ignored)
> (url-debug 'retrieval "Synchronous fetching done (%S)"
> (current-buffer))
> (setq retrieval-done t
> asynch-buffer (current-buffer)))
> nil silent inhibit-cookies))
> (sit-for 2)
>
> then I see the expected output.
>
>
> In GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.5)
Looks like Bug#34341, try upgrading to 26.3, or put
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
in your init file as a temporary workaround.
parent reply other threads:[~2020-01-17 17:46 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <CAOckuXAhVQ+79U7ZyZ9NYXbm_sAnZT5XmpRs5JXsd76OUe=JNA@mail.gmail.com>]
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=85v9pa7z8m.fsf@gmail.com \
--to=npostavs@gmail.com \
--cc=39158@debbugs.gnu.org \
--cc=erjoalgo@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.