Commit graph

16 commits

Author SHA1 Message Date
Alain Zscheile
740bee0073 chore: update usage tutorial 2022-11-26 23:45:38 +01:00
Alain Zscheile
c48367ff09 send public key with every message
this is more efficient and solves key distribution concerns
2022-11-26 23:41:56 +01:00
Alain Zscheile
1f056a298c fix simple bugs in persistence 2022-11-26 15:42:15 +01:00
Alain Zscheile
025b4a826f make TTL hop-based
this avoid dozens of issues regarding time warps, and also solves the issue
of infinitely cycling packets when the system is under saturation, as now
packets expire after passing the set amount of hops
2022-11-26 12:55:48 +01:00
Alain Zscheile
19409b738b make session handling more robust
previously, a crashing client process would take the whole backlog
with it. now, the SessionManager manages the backlog if a session is setup
2022-11-25 17:16:44 +01:00
Alain Zscheile
3b9aa3f301 get rid of 'id' field in messages, use Blake2b hash instead 2022-11-24 23:11:09 +01:00
Alain Zscheile
166dbee97b handle closing tcp connection better 2022-11-24 21:15:35 +01:00
Alain Zscheile
7981edd41f correctly register session key, fix lru race condition in tests 2022-11-24 20:57:09 +01:00
Alain Zscheile
825b65f9ee run 'mix format' 2022-11-24 20:01:34 +01:00
Alain Zscheile
98bfe3c98b make it possible to use multiple LruCache instances 2022-11-24 20:01:09 +01:00
Alain Zscheile
de9c79016a add LruCache impl 2022-11-24 19:38:32 +01:00
Alain Zscheile
8f8db8c841 fix invalid socket calling convention 2022-11-24 18:58:09 +01:00
Alain Zscheile
6c3c295f43 distributor: use GenServer instead 2022-11-24 18:34:08 +01:00
Alain Zscheile
625afcbd55 first try at integration test 2022-11-24 16:30:14 +01:00
Alain Zscheile
3671033f6d +SessionManager 2022-11-24 00:56:38 +01:00
Alain Zscheile
9b189b7f4f initial commit 2022-11-22 17:35:08 +01:00