GNU bug report logs -
#73199
url-retrieve is not thread-safe
Previous Next
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
[Message part 1 (text/plain, inline)]
Your bug report
#73199: url-retrieve is not thread-safe
which was filed against the emacs package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 73199 <at> debbugs.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)]
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.
[Message part 3 (message/rfc822, inline)]
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
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.