Configure the knots web server connection buffer size
Rather than changing the buffer size when processing each request.
This commit is contained in:
parent
98c4fae76f
commit
8f3968af1e
1 changed files with 1 additions and 4 deletions
|
|
@ -75,10 +75,6 @@
|
|||
(request-method request)
|
||||
(uri-path (request-uri request)))))
|
||||
#:unwind? #t)
|
||||
;; The fibers web server uses a 1024 byte buffer, so increase this
|
||||
(setvbuf (request-port request)
|
||||
'block
|
||||
(expt 2 16))
|
||||
(apply values
|
||||
(let-values (((request-components mime-types)
|
||||
(request->path-components-and-mime-type request)))
|
||||
|
|
@ -294,6 +290,7 @@ port. Also, the port used can be changed by passing the --port option.\n"
|
|||
exn
|
||||
#f))
|
||||
#:code 500))))))
|
||||
#:connection-buffer-size (expt 2 16)
|
||||
#:host host
|
||||
#:port port)))
|
||||
#:unwind? #t)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue