ec2f2489a2
Fix resource pool bug
...
/ test (push) Successful in 9s
And remove unnecessary named let.
2025-07-01 23:13:31 +01:00
ff93dc1442
Add a post-request-hook to the web server
/ test (push) Successful in 11s
2025-07-01 12:45:12 +01:00
ce1b710bcf
Use a queue for the resource pool waiters
...
/ test (push) Successful in 8s
As this will maybe improve performance.
2025-06-30 22:57:08 +01:00
7709ffe1d3
Tweak the knots chunked output port
...
/ test (push) Successful in 9s
To try and reduce the number of write syscalls.
2025-06-30 15:41:04 +02:00
deae518b52
Use the buffer size for chunked output ports
/ test (push) Successful in 37s
2025-06-29 08:35:28 +02:00
0fa6737a39
Document some things
/ test (push) Successful in 9s
2025-06-27 23:28:47 +02:00
4140ef0bd6
More consistently handle results and exceptions
...
In the parallelism module.
2025-06-27 22:43:25 +02:00
6f6d57b189
Use the knots backtrace printer for tests
/ test (push) Successful in 11s
2025-06-27 00:16:41 +02:00
d8f64399cd
Tweak spacing
2025-06-27 00:16:37 +02:00
163d775496
Fix record-predicate that should be exception-predicate
2025-06-27 00:16:18 +02:00
8f3e0a9a1d
Fix exception handling in fibers-map-with-progress
/ test (push) Successful in 9s
2025-06-26 22:53:15 +02:00
09ca6cfb6b
Fix resource-pool-destroy-resource-exception
...
Raising the exception is more consistent, and avoids returning the
resource.
2025-06-26 21:27:32 +02:00
ab5411da42
Make resource pool changes and add parallelism limiter
...
/ test (push) Successful in 9s
This was motivated by trying to allow for completely cleaning up
resource pools, which involved removing their use of fiberize which
currently has no destroy mechanism.
As part of this, there's a new parallelism limiter mechanism using
resource pools rather than fibers, and also a fixed size resource
pool.
The tests now drain? and destroy the resource pools to check cleaning
up.
2025-06-26 10:43:46 +02:00
edf62414ee
Avoid workflow erroring if there's nothing to change
/ test (push) Successful in 12s
2025-06-24 21:14:52 +02:00
2e25c3b074
Add workflow for building the website
/ test (push) Failing after 14s
2025-06-24 21:07:29 +02:00
1b7732c958
Add manual index
2025-06-24 20:58:04 +02:00
f7eae5a3bc
Add texinfo to guix-dev.scm
2025-06-24 20:50:44 +02:00
7d31d5163d
Add guile-documenta as a native input
2025-06-24 13:10:17 +02:00
5663a5f2e9
Address exception naming inconsistencies
2025-06-21 09:43:52 +01:00
8f669f133f
Fix typo
2025-06-18 13:22:03 +03:00
78d22d1acc
Tweak display of stack traces
...
Tweak the frames to display and try to harden the code to crash less.
2025-06-09 12:19:56 +01:00
123c920122
Export sanitize-response
...
As this is useful.
2025-06-09 12:19:32 +01:00
8e582a2d73
Improve promise exception reporting
...
And guard against calling fibers-force not on a fibers promise record.
2025-05-26 14:50:45 +01:00
cbafdb8668
Respect use-default-io-waiters? for the fixed size thread pools
2025-05-25 15:34:07 +01:00
016f37f108
Rework thread pools
...
Allow the thread pool to vary in size by basing it on a resource pool
of fixed size thread pools, which are similar to the previous thread
pool implementation.
Fixed size thread pools don't require fibers, but thread pools now
do. Some procedures work with either thread pool implementation.
2025-05-19 09:06:08 +01:00
7ba77010ae
Handle %stacks not being a pair
...
Not sure when this would happen, but guard against it.
2025-05-15 09:26:29 +01:00
8c63ed7b4e
Support listing resource pool resources
2025-05-15 09:24:28 +01:00
838ee6f1e3
Enable destroying individual resources in a resource pool
2025-05-15 09:24:28 +01:00
1dca6d755e
Allow specifying the resource-pool-channel
2025-04-27 10:52:36 +01:00
68cfbe0380
Use a condition for destroying resource pools
...
This avoids the situation where the resource pool is destroyed, so
there's no fiber to listen to the destroy request.
2025-04-27 10:03:06 +01:00
4f0eafef0a
Resource pool max waiters and destroy changes
...
Add the ability to specify the max number of waiters for a resource
pool, this provides a more efficient way of avoiding waiters for a
resource pool continually rising.
This commit also improves the destroy behaviour.
2025-04-27 09:41:56 +01:00
8c0f04be4f
Don't call put-message without unwinding the stack
...
When handling exceptions, as this is error prone.
2025-04-01 17:47:11 +03:00
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
da69fd19f3
Unwind before calling put-message
...
As I think this might be more reliable in case the stack contains
something that would introduce a continuation barrier.
2025-03-11 11:55:42 +00:00
a73fd1ca50
Add a fibers-parallel test
2025-03-10 21:33:29 +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
759ff87c0c
Remove GUILE_AUTO_COMPILE=0 from test-env.in
...
As I'm not sure this helps with backtraces.
2025-03-08 10:14:54 +00:00
3841b452a4
Use guile-next and guile-fibers-next for development
2025-03-08 10:14:33 +00:00
4e33da98aa
Fix some exception handling issues
2025-03-08 09:39:27 +00:00
3aab1be1e7
Revert "Use module-ref for make-base-operation"
...
This isn't working, with make-base-operation changing from part of a
macro to a procedure, I'm not sure how to maintain compatability. I
think just switching to guile-fibers-next everywhere is the approach
to take.
This reverts commit f41d1853ce
.
2025-03-04 14:18:32 +00:00
a6c96aa1da
Better handle the web server exception handler not returning 2 values
2025-03-03 10:56:36 +00:00
f41d1853ce
Use module-ref for make-base-operation
...
As the implementation of this changed in fibers, and that's causing
issues here when mixing the version of fibers used for knots and
different versions of fibers.
2025-02-27 13:23:06 +00:00
21e328aebb
Improve exception reporting
2025-02-27 13:22:36 +00:00
ed4113af51
Simplify and extend using the knots exception with stack
2025-02-27 13:22:36 +00:00
d8bc09755e
Fix knots-exception?
2025-02-27 12:18:36 +00:00
60bfe0d7a3
Remove trailing whitespace
2025-02-27 12:07:16 +00:00
f549bee282
Improve thread pool exception logging
2025-02-26 10:07:54 +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