feat: add non-blocking NTCP2 sends and Firefox settings sync
check / check (macos-latest) (push) Failing after 26s
check / check (ubuntu-latest) (push) Failing after 27s
check / check (windows-latest) (push) Failing after 30s

- NTCP2: queue outbound data frames and flush them without blocking (send_blocks_nb, send_i2np_nb, flush_nonblocking)
- NTCP2: bound write_all with a deadline and set TCP keepalive and user timeout on peer sockets
- Firefox extension 0.1.3: save settings as a patch, keep unsaved form fields from being overwritten on refresh, add timeouts to router API calls, and honor the interceptTorrents toggle in the content script
This commit is contained in:
nandi committed 2026-11-28 18:39:32 -08:00
1 parent 82aaa9f11e
commit 9aa15f9ae8
18 files changed
+1323 -239

No files matched your search

+2
View File
@@ -68,6 +68,7 @@ pub struct Router {
priv aliases : Array[(String, String)] // hostname -> pub_b64
priv b32_aliases : Array[(String, String)] // hostname -> lowercase <52>.b32.i2p
priv failed_peers : Array[(@common.Hash, UInt64)] // (router_hash, retry_after_ms)
priv ratchet_resets : Array[(@common.Hash, UInt64)] // (peer_hash, last_reset_ms)
priv mut http_proxy_listener : @ntcp2_net.TcpListener?
priv http_proxy_conns : Array[HttpProxyConn]
priv mut http_proxy_session_id : String?
@@ -263,6 +264,7 @@ pub fn Router::start(
aliases: [],
b32_aliases: [],
failed_peers: [],
ratchet_resets: [],
http_proxy_listener: None,
http_proxy_conns: [],
http_proxy_session_id: None,