xml-rpc-method-call-async doesn't trigger callback with correct results
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xml-rpc-el |
New
|
Undecided
|
Unassigned |
Bug Description
I'm not sure if I'm doing something wrong, if there's a bug in xml-rpc, or if perhaps there's a bug in some lower-level functionality (e.g. url-http). In any event, I don't seem to be getting the correct results when I make an asynchronous call with xml-rpc-
The remote call works just fine when I use synchronous calls, so I assume that the basic connectivity and plumbing works. There just seems to be a problem getting return values.
Here's an example of what doesn't work:
----
(defun simple-cb (rslt)
(message (format "simple-cb: %s" rslt)))
(defun canned-call-async ()
"This does not work. simple-cb is only ever called with nil."
(xml-
'simple-cb
"http://
'examples.
41))
(defun canned-call-sync ()
"This does work. I correctly get back South Dakota."
(message
(format
"sync result: %s"
(
"http://
41))))
----
Is there anything obviously wrong with what I'm doing? Or am I correct in expecting simple-cb to be called with the remote functions return result?
I found a similar problem which seems to manifest itself on newer version of emacs (and the URL library). Can you try the following patch and see if it works for you?
https:/ /github. com/stsquad/ xml-rpc/ commit/ 38c573158a0dc29 50a5ea26a37644f fe19fd4f3d