Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jsonrpc:call returns NIL sometimes with SBCL #13

Open
ghost opened this issue Aug 22, 2018 · 0 comments
Open

jsonrpc:call returns NIL sometimes with SBCL #13

ghost opened this issue Aug 22, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 22, 2018

Sometime, call function does not return value.

(ql:quickload :jsonrpc)

;; server
(defvar *server* (jsonrpc:make-server))
(sb-thread:make-thread
 (lambda ()
   (jsonrpc:expose *server* "sum" (lambda (args) (reduce #'+ args)))
   (jsonrpc:server-listen *server* :port 50879 :mode :websocket)))

;; client
(defvar *client* (jsonrpc:make-client))
(jsonrpc:client-connect *client* :url "ws://127.0.0.1:50879" :mode :websocket)
(dotimes (n 10000)
  (unless (= 30 (jsonrpc:call *client* "sum" '(10 20)))
    (error "not 30")))
@fukamachi fukamachi added the bug label Aug 9, 2019
@fukamachi fukamachi changed the title call function does not return value jsonrpc:call returns NIL sometimes with SBCL Aug 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant