Variable: nrepl-completed-requests-max-size

nrepl-completed-requests-max-size is a customizable variable defined in nrepl-client.el.

Value

1000

Documentation

Maximum number of completed-request handlers retained per connection.

nREPL servers occasionally send late messages for requests whose
"done" status has already arrived (typically a sub-second window).
We keep the recently-completed handlers around so those messages still get dispatched. Without a bound, the table grew unbounded for the lifetime of the connection.

Eviction is FIFO: when the table is full, the oldest entry is dropped to make room for the newest. 1000 is ample in practice -- requests complete in milliseconds, so this caps roughly a second of activity. Set to 0 to disable the cache entirely; late messages will then become log warnings.

This variable was added, or its default value changed, in cider version 1.22.0.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/nrepl-client.el
(defcustom nrepl-completed-requests-max-size 1000
  "Maximum number of completed-request handlers retained per connection.

nREPL servers occasionally send late messages for requests whose
\"done\" status has already arrived (typically a sub-second window).
We keep the recently-completed handlers around so those messages still
get dispatched.  Without a bound, the table grew unbounded for the
lifetime of the connection.

Eviction is FIFO: when the table is full, the oldest entry is dropped
to make room for the newest.  1000 is ample in practice -- requests
complete in milliseconds, so this caps roughly a second of activity.
Set to 0 to disable the cache entirely; late messages will then become
log warnings."
  :type 'integer
  :safe #'integerp
  :package-version '(cider . "1.22.0"))