feat: add non-blocking NTCP2 sends and Firefox settings sync
- 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:
1 parent
82aaa9f11e
commit
9aa15f9ae8
18 files changed
+1323
-239
No files matched your search
@@ -109,6 +109,10 @@ pub struct RatchetPeerSession {
|
||||
mut local_next_pub : Bytes?
|
||||
mut remote_next_pub : Bytes?
|
||||
mut last_used_sec : UInt32
|
||||
mut send_enabled : Bool
|
||||
mut confirmed : Bool
|
||||
mut sent_es : Bool
|
||||
mut last_recv_sec : UInt32
|
||||
}
|
||||
pub fn RatchetPeerSession::apply_dh_ratchet(Self, Bytes, Bytes, for_send~ : Bool) -> Unit raise RatchetError
|
||||
pub fn RatchetPeerSession::encrypt_existing(Self, Array[RatchetBlock]) -> Bytes raise RatchetError
|
||||
@@ -120,9 +124,12 @@ pub struct RatchetSessionManager {
|
||||
inbound_pending : Array[PendingNewSession]
|
||||
}
|
||||
pub fn RatchetSessionManager::create_next_key_block(Self, Bytes, () -> Bytes) -> RatchetBlock? raise RatchetError
|
||||
pub fn RatchetSessionManager::decrypt_incoming(Self, Bytes) -> (Bytes?, Array[RatchetBlock]) raise RatchetError
|
||||
pub fn RatchetSessionManager::decrypt_incoming(Self, Bytes, now_sec? : UInt32) -> (Bytes?, Array[RatchetBlock]) raise RatchetError
|
||||
pub fn RatchetSessionManager::drop_session(Self, Bytes) -> Unit
|
||||
pub fn RatchetSessionManager::encrypt_to_peer(Self, Bytes, Array[RatchetBlock], UInt32, () -> Bytes) -> Bytes raise RatchetError
|
||||
pub fn RatchetSessionManager::has_active_session(Self, Bytes, now_sec? : UInt32) -> Bool
|
||||
pub fn RatchetSessionManager::last_recv_sec(Self, Bytes) -> UInt32
|
||||
pub fn RatchetSessionManager::mark_send_stale(Self, Bytes) -> Unit
|
||||
pub fn RatchetSessionManager::new(@noise.KeyPair) -> Self
|
||||
|
||||
pub struct TagSet {
|
||||
|
||||
Reference in new issue
Block a user