[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/06: Configure the knots web server connection buffer size
From: |
Christopher Baines |
Subject: |
06/06: Configure the knots web server connection buffer size |
Date: |
Thu, 30 Jan 2025 04:10:47 -0500 (EST) |
cbaines pushed a commit to branch master
in repository data-service.
commit 8f3968af1e9cc09f7156f406d4b2e0c72976f683
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Wed Jan 29 16:34:16 2025 +0000
Configure the knots web server connection buffer size
Rather than changing the buffer size when processing each request.
---
guix-data-service/web/server.scm | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/guix-data-service/web/server.scm b/guix-data-service/web/server.scm
index 3044e4d..20b34cb 100644
--- a/guix-data-service/web/server.scm
+++ b/guix-data-service/web/server.scm
@@ -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)))
- branch master updated (25bf45f -> 8f3968a), Christopher Baines, 2025/01/30
- 04/06: Update Knots, Christopher Baines, 2025/01/30
- 06/06: Configure the knots web server connection buffer size,
Christopher Baines <=
- 01/06: Fix null handling in result-serializer-simple-list-with-null-handling, Christopher Baines, 2025/01/30
- 03/06: Fix branch package version page if no data is found, Christopher Baines, 2025/01/30
- 05/06: Move the exception handling to the knots web server, Christopher Baines, 2025/01/30
- 02/06: Fix matching NULL, Christopher Baines, 2025/01/30