GNU bug report logs - #73199
url-retrieve is not thread-safe

Previous Next

Package: emacs;

Reported by: Michael Albinus <michael.albinus <at> gmx.de>

Date: Thu, 12 Sep 2024 14:21:02 UTC

Severity: normal

Fixed in version 31.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#73199: closed (url-retrieve is not thread-safe)
Date: Fri, 11 Oct 2024 10:45:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 11 Oct 2024 12:44:14 +0200
with message-id <87set2udfl.fsf <at> gmx.de>
and subject line Re: bug#73199: url-retrieve is not thread-safe
has caused the debbugs.gnu.org bug report #73199,
regarding url-retrieve is not thread-safe
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
73199: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=73199
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Michael Albinus <michael.albinus <at> gmx.de>
To: bug-gnu-emacs <at> gnu.org
Subject: soap-client; soap-invoke-internal is not thread-safe
Date: Thu, 12 Sep 2024 16:20:03 +0200
Forward to debbugs

From: Michael Albinus <michael.albinus <at> gmx.de>
Subject: soap-client; soap-invoke-internal is not thread-safe
To: Alexandru Harsanyi <AlexHarsanyi <at> gmail.com>
Date: Thu, 12 Sep 2024 15:57:45 +0200 (19 minutes, 24 seconds ago)

In package debbugs, I try to use Emacs Lisp threads when retrieving SOAP
data from the debbugs server. However, ocaasionally I run into the error

--8<---------------cut here---------------start------------->8---
(error "Attempt to accept output from process debbugs.gnu.org locked to thread #<thread 0xc288a0>")
--8<---------------cut here---------------end--------------->8---

My work around is to advice url-http-create-request

--8<---------------cut here---------------start------------->8---
  (advice-add
   'url-http-create-request :around
   (lambda (orig-fun)
     "Set `url-http-attempt-keepalives' to nil."
     (setq url-http-attempt-keepalives nil)
     (funcall orig-fun))
   '(name debbugs-advice))
--8<---------------cut here---------------end--------------->8---

However, it would be great if soap-invoke-internal could care.

Emacs  : GNU Emacs 31.0.50 (build 35, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.0)
 of 2024-09-12
Package: soap-client


[Message part 3 (message/rfc822, inline)]
From: Michael Albinus <michael.albinus <at> gmx.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: AlexHarsanyi <at> gmail.com, fitzsim <at> fitzsim.org, monnier <at> iro.umontreal.ca,
 73199-done <at> debbugs.gnu.org
Subject: Re: bug#73199: url-retrieve is not thread-safe
Date: Fri, 11 Oct 2024 12:44:14 +0200
Version: 31.1

Eli Zaretskii <eliz <at> gnu.org> writes:

Hi Eli,

> Please go ahead and install, I think the patch is okay.

Done. I'm closing the bug, therefore.

> (I presume you know about set-process-thread, and that it doesn't help
> in this scenario?)

Yes, I know it. But I cannot use it; the process is already in the
proper thread where it should be.

Best regards, Michael.


This bug report was last modified 260 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.