Use the buffer size for chunked output ports
All checks were successful
/ test (push) Successful in 37s

This commit is contained in:
Christopher Baines 2025-06-29 08:35:28 +02:00
parent 0fa6737a39
commit deae518b52

View file

@ -333,7 +333,8 @@ on the procedure being called at any particular time."
(define (handle-request handler client
read-request-exception-handler
write-response-exception-handler)
write-response-exception-handler
buffer-size)
(let ((request
(with-exception-handler
read-request-exception-handler
@ -399,7 +400,8 @@ on the procedure being called at any particular time."
client
(make-chunked-output-port/knots
client
#:keep-alive? #t))))
#:keep-alive? #t
#:buffering buffer-size))))
(set-port-encoding! body-port charset)
(let ((body-written?
(with-exception-handler
@ -472,7 +474,8 @@ on the procedure being called at any particular time."
(else
(let ((keep-alive? (handle-request handler client
read-request-exception-handler
write-response-exception-handler)))
write-response-exception-handler
buffer-size)))
(if keep-alive?
(loop)
(close-port client)))))))