e1858dfff5
Remove the web-server exception handler
...
This turned out not to be useful, since I wanted to handle exceptions
happening in the exception handler, so it didn't really help in the
end to allow customising it.
2025-03-14 14:51:42 +00:00
47ff45d963
Abbreviate the fport_writer error message
...
From the web server.
2025-03-10 21:32:55 +00:00
710972691b
Fix exception handling for the web server exception handler
...
Don't crash if it returns a response with invalid headers.
2025-03-08 18:43:44 +00:00
e3bc3c12b0
Add some helpers for handling request bodies
2025-03-08 10:15:25 +00:00
a6c96aa1da
Better handle the web server exception handler not returning 2 values
2025-03-03 10:56:36 +00:00
13f1118576
Use #f as the default web server connection-idle-timeout
...
As it's not efficient yet and seems to cause excessive memory use.
2025-02-20 14:20:25 +00:00
239cb88f93
Rework handling connection persistance in the web server
...
Change to setting the connection header in the response based on the
request, and then closing the connection in the server based on the
response headers.
Stop closing the response based on the response code, as I don't know
why this is necessary.
2025-02-20 13:42:12 +00:00
1fbd1f334a
Fix exception origin in the knots web server
2025-02-19 17:34:45 +00:00
ca3d5a1781
Fix handling of client-loop exceptions
...
Maybe other things can go wrong here, so log so that there's some
information available.
2025-02-19 12:44:47 +00:00
ee2a93fbca
Avoid needlessly setting the encoding
2025-02-07 17:02:37 +00:00
cb2085b684
Make more web server encoding tweaks
2025-02-07 16:09:42 +00:00
b0bb65dbed
Tweak some web server exception handling
2025-02-07 10:54:59 +00:00
19c1fe235b
Allow customising the web server read request exception handler
2025-02-07 10:48:50 +00:00
7de5901a94
Simplify exception handling in the web server
2025-02-06 16:45:22 +00:00
893299ba24
Start trying to improve exceptions and backtraces
...
When using knots utilities.
2025-02-03 15:44:51 +00:00
92bb4b8d85
Export the default-exception-handler
2025-02-03 12:06:10 +01:00
41974a6817
Rework handling of using a proc for the web server response body
...
To address encoding issues and improve exception handling.
2025-02-03 11:25:11 +01:00
40cf026ea4
Rework exception handling in the web server
2025-02-03 11:19:52 +01:00
c641c19ce4
Call web server exception handlers with the request
...
So that this can be used when reporting the exception.
2025-01-29 16:18:15 +00:00
b5cc5fd077
Make the web server buffer size configurable
2025-01-29 16:17:56 +00:00
c1796f0081
Update run-knots-web-server docstring
2025-01-25 18:17:38 +00:00
675d8c3258
Make the web server exception handler configurable
2025-01-25 18:16:27 +00:00
8805265243
Don't wait indefinitely for new requests in the web server
...
Inspired by the similar changes in Cuirass.
2025-01-25 18:16:27 +00:00
8a99f51bf9
Handle when the wrong number of values is returned in the web server
2025-01-23 19:46:43 +01:00
42d885c553
Try to better handle exceptions in the web server
2025-01-23 09:34:54 +01:00
2f39c58d6c
Initial commit
2024-12-16 09:18:12 +00:00