Simon Cruanes
a07936dac4
eio backend, second attempt ( #95 )
...
format / format (push) Waiting to run
build / build (4.13.x, ubuntu-latest) (push) Waiting to run
build / build (4.14.x, ubuntu-latest) (push) Waiting to run
build / build (5.03.x, ubuntu-latest) (push) Waiting to run
feat: `tiny_httpd_eio` library
provides a tiny_httpd server that relies on Eio for non-blocking
sockets and for concurrency using eio fibers.
2026-02-15 16:36:32 -05:00
Simon Cruanes
ba19880d75
hardening bugfixes
...
github pages / deploy (push) Has been cancelled
build / build (4.13.x, ubuntu-latest) (push) Has been cancelled
build / build (4.14.x, ubuntu-latest) (push) Has been cancelled
build / build (5.03.x, ubuntu-latest) (push) Has been cancelled
* fix: use realpath to validate filesystem paths against traversal
- add string_prefix helper to check path containment
- compute root_canonical once per add_vfs_ call
- use realpath only for filesystem (on_fs=true), keeping simple
contains_dot_dot check for VFS
- paths are already URL-decoded by Route.rest_of_path_urlencoded
* fix: add header size limits to prevent memory exhaustion
add optional limits to Headers.parse_:
- max_headers: 100 (default)
- max_header_size: 16KiB per header (default)
- max_total_size: 256KiB total (default)
returns 431 status code when limits exceeded per RFC 6585.
2026-02-10 19:57:21 -05:00
Simon Cruanes
cdac33689a
add basic test for response
2025-04-18 09:37:27 -04:00
Simon Cruanes
09ff4f98ed
fix percent encoding for < 0x10 chars
2024-12-25 11:12:42 -05:00
Simon Cruanes
de9760d786
format
2024-08-15 09:18:15 -04:00
Simon Cruanes
4705278c3b
add more tests
2024-06-18 17:04:15 -04:00
Simon Cruanes
b6cd59f084
add tests
2024-06-18 16:47:25 -04:00
Simon Cruanes
9329c95ce7
test: update unit tests for websockets
2024-04-05 13:23:10 -04:00
Simon Cruanes
00b6efdcd5
fix warning in tests
2024-04-04 16:27:11 -04:00
Simon Cruanes
c795ebb809
update test output
2024-04-04 15:59:04 -04:00
Simon Cruanes
2eba43e632
test: add websocket masking tests
2024-04-04 15:54:55 -04:00
Simon Cruanes
7e790c0161
fix: parse query when there's a fragment indication
2024-02-28 15:01:13 -05:00
Simon Cruanes
6cfd1975d1
details for logs
2024-02-26 22:54:45 -05:00
Simon Cruanes
ec3dec6b72
wip: bugfixes
2024-02-26 16:28:31 -05:00
Stéphane Lavergne
03596c1a08
Remove option around client_addr
2023-08-08 15:18:39 -04:00
Simon Cruanes
572168967f
remove last qtest
2023-08-08 14:41:58 -04:00
Simon Cruanes
009a8d6d3b
test: tests for Buf
2023-06-20 23:03:31 -04:00
Simon Cruanes
c2b6ac24f4
fix: unit tests are for tiny_httpd
2023-05-24 16:14:13 -04:00
Simon Cruanes
82ebf85ee7
remove dep on ounit2 and qtest
2023-05-24 15:13:27 -04:00