Skip to content

Commit 45b358f

Browse files
committed
FIX: close httpd server on request even when there are pending client connections
1 parent 27611e9 commit 45b358f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/modules/httpd.reb

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ Rebol [
22
Title: "HTTPd Scheme"
33
Type: module
44
Name: httpd
5-
Date: 14-Dec-2023
6-
Version: 0.9.0
5+
Date: 10-Jan-2024
6+
Version: 0.9.1
77
Author: ["Andreas Bolka" "Christopher Ross-Gill" "Oldes"]
88
Exports: [serve-http http-server decode-target to-CLF-idate]
99
Home: https://github.com/Oldes/Rebol-HTTPd
@@ -917,7 +917,7 @@ sys/make-scheme [
917917
;try [remove find clients port]
918918
]
919919
log-debug ["Ports open:" length? clients]
920-
if all [ctx/done? zero? length? clients][
920+
if ctx/done? [
921921
log-more "Server's job done, closing initiated"
922922
ctx/parent/data: ctx/done?
923923
Awake-Server make event! [type: 'CLOSE port: ctx/parent]

0 commit comments

Comments
 (0)