File tree Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 0.14.2 (2020-07-30)
4
+
5
+ * Ensure clients actually exit when a 'CLIENT KILL' command is received
6
+
3
7
## 0.14.1 (2020-07-30)
4
8
5
9
* Ensure clients can poll, by listening with (while) instead of (when)
Original file line number Diff line number Diff line change 44
44
45
45
[de kv-cmd-client-kill (Filter Arg)
46
46
(case (uppc Filter)
47
- [" ID" (length (make (mapcar '((N) (when (= Arg (cdr (assoc " id" (cadr N)))) (kv-remove-client (car N)) (link T ))) (get (kv-value " %stats%/connected_clients" ) ]
47
+ [" ID" (length (make (mapcar '((N) (when (= Arg (cdr (assoc " id" (cadr N)))) (kv-remove-client (car N) T ) (link T ))) (get (kv-value " %stats%/connected_clients" ) ]
48
48
(T 0 ) ]
49
49
50
50
[de kv-cmd-client-list ()
Original file line number Diff line number Diff line change 1
1
[de APP_INFO
2
2
(" name" " picolisp-kv" )
3
- (" version" " 0.14.1 " )
3
+ (" version" " 0.14.2 " )
4
4
(" summary" " Redis-inspired in-memory key/value store written in PicoLisp" )
5
5
(" source" " https://github.com/aw/picolisp-kv" )
6
6
(" author" " Alexander Williams" )
Original file line number Diff line number Diff line change 16
16
(out Pipe_child (pr (cons " message" Result) ]
17
17
18
18
# Remove the child's process ID from the list of connected clients
19
- [de kv-remove-client (Pid)
19
+ [de kv-remove-client (Pid Kill)
20
+ (when Kill (kill Pid))
20
21
(kv-stat " connected_clients" (filter '((N) (unless (= (car N) Pid) N)) *KV/%stats%/connected_clients))
21
22
NIL ] # NIL breaks from (kv-sibling-loop )
22
23
You can’t perform that action at this time.
0 commit comments