Use the buffer size for chunked output ports
All checks were successful
/ test (push) Successful in 37s
All checks were successful
/ test (push) Successful in 37s
This commit is contained in:
parent
0fa6737a39
commit
deae518b52
1 changed files with 6 additions and 3 deletions
|
@ -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)))))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue