all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#39158: 26.1; url-retrieve-synchronously possible race condition
       [not found] ` <CAOckuXAhVQ+79U7ZyZ9NYXbm_sAnZT5XmpRs5JXsd76OUe=JNA@mail.gmail.com>
@ 2020-01-17 17:46   ` Noam Postavsky
  0 siblings, 0 replies; only message in thread
From: Noam Postavsky @ 2020-01-17 17:46 UTC (permalink / raw)
  To: Ernesto Alfonso; +Cc: 39158

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.





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-17 17:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CAOckuXD4DThhFSO0MB4W3VK4OqUVxZC2fdCX9x-Lgd29tTavxw@mail.gmail.com>
     [not found] ` <CAOckuXAhVQ+79U7ZyZ9NYXbm_sAnZT5XmpRs5JXsd76OUe=JNA@mail.gmail.com>
2020-01-17 17:46   ` bug#39158: 26.1; url-retrieve-synchronously possible race condition Noam Postavsky

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.