eudoxia0 / swank-protocol

A low-level client for Swank
31 stars 3 forks source link

Server stops responding after 20 requests #1

Open honix opened 8 years ago

honix commented 8 years ago
; init server side ...
; init client side ->

(defparameter connection
  (swank-protocol:make-connection (uiop:hostname) 5000))

(swank-protocol:connect connection)

(swank-protocol:request-swank-require connection
                                      '(swank-presentations swank-repl))

(swank-protocol:request-init-presentations connection)

(swank-protocol:request-create-repl connection)

; 20 is dead line

(loop for i to 25 do 
      (swank-protocol:request-listener-eval connection "(+ 2 2)")
      (sleep 0.5) 
      (format t "~A ~% ~A~%" i
          (swank-protocol:read-all-messages connection)))

Fresh connection will give me another 20 messages.

Same issue with: ArchLinux (4.7.6 kernel) - SBCL Windows 8.1 - SBCL

ghost commented 6 years ago

Maybe it has something to do with this functionality? https://github.com/slime/slime/blob/29f3154d38ab31fc49e5eaf65d7021b306be9a5b/swank.lisp#L1074