Simon Cruanes
7f9fae1fc8
test: echo_mio: add a heavier endpoint
2024-09-03 15:51:15 -04:00
Simon Cruanes
e199162e1f
fix: also make server socket nonblocking
2024-09-03 15:40:26 -04:00
Simon Cruanes
cf9c14b1c2
basic test for moonpool-io
2024-09-03 15:17:25 -04:00
Simon Cruanes
c43ffb5ff4
feat: add tiny_httpd_moonpool library
2024-09-03 15:16:33 -04:00
Simon Cruanes
e341f48ece
chore: try to fix CI
2024-08-15 10:00:17 -04:00
Simon Cruanes
de9760d786
format
2024-08-15 09:18:15 -04:00
Simon Cruanes
0fbfd9df43
chore: add make format
2024-08-15 09:18:07 -04:00
Simon Cruanes
93a30366e1
better error message on IO failure
2024-08-01 10:51:35 -04:00
Simon Cruanes
5130653068
chore build: add more re_export
2024-07-16 10:01:47 -04:00
Simon Cruanes
3e17532495
fix changes
2024-06-24 09:49:33 -04:00
Simon Cruanes
9eb3cbfc70
prepare for 0.17
2024-06-20 15:23:51 -04:00
Simon Cruanes
0b4c28264c
Merge pull request #87 from c-cube/simon/fix-chunk-2024-06-18
...
fix chunking reading
2024-06-20 11:52:08 -04:00
Simon Cruanes
f720a01ed8
fix this damn non determinism test
2024-06-20 11:07:44 -04:00
Simon Cruanes
ee637c7c81
fix test
2024-06-20 09:28:13 -04:00
Simon Cruanes
3cdec1c0c7
fix
2024-06-18 17:04:19 -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
199bcff68d
more debug
2024-06-18 16:28:18 -04:00
Simon Cruanes
e8c7d3c879
better error messages
2024-06-18 16:26:15 -04:00
Jonah Beckford
14a48756a8
Do not use sigprocmask on Windows
...
Fixes #85
2024-04-18 11:20:40 -04:00
Simon Cruanes
bc34363f60
expose Bad_req in Server
2024-04-16 14:45:21 -04:00
Simon Cruanes
e5191f0fd7
fix: give the correct code+error if protocol upgrade fails
2024-04-15 15:04:44 -04:00
Simon Cruanes
284d1f7400
add optional middlewares to tiny_httpd_ws
2024-04-15 12:11:46 -04:00
Simon Cruanes
241d9aeaf1
add Head_middleware.trivial
2024-04-15 12:09:37 -04:00
Simon Cruanes
e1368525d8
feat: add Head_middleware.t; accept it for SSE/websocket
2024-04-15 12:05:48 -04:00
Simon Cruanes
19554068b5
feat ws: expose Close_connection
2024-04-05 16:14:23 -04:00
Simon Cruanes
e4303b2fd4
remove debug messages
2024-04-05 13:49:10 -04:00
Simon Cruanes
2292128d30
perf: optim in read_line
2024-04-05 13:23:41 -04:00
Simon Cruanes
9329c95ce7
test: update unit tests for websockets
2024-04-05 13:23:10 -04:00
Simon Cruanes
3393c13c00
fix websocket: properly remember the offset in current frame
...
not doing so means we always unmask from offset 0, which means we might
use the wrong index in the mask if we do, say, `read()=3` followed by
another read: the second one would start from mask[0] instead of
mask[3], producing raw unfiltered garbage.
2024-04-05 13:21:54 -04:00
Simon Cruanes
5301ed40ea
fix websocket: read 16-bit length as unsigned
2024-04-04 22:11:08 -04:00
Simon Cruanes
00b6efdcd5
fix warning in tests
2024-04-04 16:27:11 -04:00
Simon Cruanes
7c765a181d
remove dead code
2024-04-04 16:27:06 -04:00
Simon Cruanes
c1038e5b77
fix CI
2024-04-04 16:17:30 -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
dbd00259da
feat ws: a bit of cleanup, expose masking primitive
2024-04-04 15:54:55 -04:00
Simon Cruanes
0014334010
update tests, make them more robust
2024-04-03 21:44:24 -04:00
Simon Cruanes
84adbb13b2
cleanup
2024-04-03 21:36:14 -04:00
Simon Cruanes
d8ff243e8d
feat ws: pass the whole request to the handler
2024-04-02 14:35:57 -04:00
Simon Cruanes
4b845bf019
debug in websocket
2024-04-02 14:10:16 -04:00
Simon Cruanes
8dd86993d7
remove potentially security-leaking debug line
2024-03-26 13:01:02 -04:00
Simon Cruanes
a309c657c8
fix: 1xx codes are also success
2024-03-25 14:24:17 -04:00
Simon Cruanes
ba17858063
require iostream-camlzip >= 0.2.1
...
close #83
2024-03-25 10:21:18 -04:00
Simon Cruanes
fca8ba46e1
make sure to flush underlying stream
2024-03-25 10:18:27 -04:00
Simon Cruanes
bbebf15fce
remove vendored iostream
2024-03-25 10:16:13 -04:00
Simon Cruanes
3a1a884186
update tests to add repro for #83
2024-03-25 10:15:13 -04:00
Simon Cruanes
9864c53b95
wip
2024-03-15 11:04:16 -04:00
Simon Cruanes
78ded146ac
add .html files for SSE and websocket examples
2024-03-12 10:39:50 -04:00
Simon Cruanes
fe9596f4fe
fix ws: missing flush
2024-03-12 10:39:38 -04:00