Send a scope that is bigger than the push channel in bigger chunks
A sync is sent whole or not at all, so that a scope is never left half sent; that needs the channel to have room for every frame of it. A scope with more frames than the channel holds when it is empty (more than 16 frames of 256 entities on the smallest channel) could never be sent and stayed lagged for ever. The chunks of such a sync are now as big as the channel needs, so every sync fits an empty channel. A test syncs a SERVER scope of 5,000 channels over the smallest channel. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
88f58ea468
commit
b5ea0c3e95
3 files changed
+49
-4
No files matched your search
@@ -1027,6 +1027,6 @@ its own place above and tested.
|
||||
| CHAT subscriptions were capped at 16 in process: the 15th private peer's messages were never delivered. | `LinkSession` says 65,536; SessionLink sizes its scopes from `Welcome.limits` (16 only when the host says nothing), server chat and own channel first, newest private conversations next (4.3). | `private_messages_from_more_than_16_peers_all_arrive`, the limits in `the_welcome_names_the_host_the_user_and_what_the_link_can_do` |
|
||||
| `LinkSession::notify` accepted `List`, `FileRead` and `FileWrite` and ignored them. | A misplaced op is a `Protocol` error; any other op of the control stream is run (3.1). | `a_notify_needs_the_control_stream_and_is_run_as_the_request_it_is` |
|
||||
| A push channel that ended during the connect syncs threw the session's close reason away. | The reason of `closed()` is the reason of `Disconnected` (4.2). | `a_session_that_ends_during_the_connect_syncs_says_why` |
|
||||
| `LinkSession` awaited `pushes.send()`: a lagging consumer stalled voice and commands. | Nothing in the task waits: a push that finds the channel full is dropped, the scope is marked as lagged and sent again whole (`SyncBegin`..`SyncEnd`, all or none) when the channel has room, as `ConnectParams.push_capacity` documents. Signals have no scope: they are dropped. | `a_consumer_that_lags_loses_the_queue_and_gets_the_scope_again` |
|
||||
| `LinkSession` awaited `pushes.send()`: a lagging consumer stalled voice and commands. | Nothing in the task waits: a push that finds the channel full is dropped, the scope is marked as lagged and sent again whole (`SyncBegin`..`SyncEnd`, all or none) when the channel has room, as `ConnectParams.push_capacity` documents; a scope bigger than the channel is sent in bigger chunks, so that it fits an empty channel. Signals have no scope: they are dropped. | `a_consumer_that_lags_loses_the_queue_and_gets_the_scope_again`, `a_scope_bigger_than_the_channel_is_sent_in_bigger_chunks` |
|
||||
| An address no connector serves was echoed in full, with `?channelpassword=`. | The text cuts the address at `?` and `#` (4.1). | `the_text_of_an_address_nobody_serves_keeps_the_channel_password_out`, `an_address_is_shown_without_its_secrets` |
|
||||
| `LinkEvent::Talking` of the inner link was ignored, and its documentation unchanged: Speex and CELT talkers were no longer shown as talking. | The docs of `Talking`, `OwnChannel` and `Connected.own_client` say what the adapter derives; the inner link's `Talking` goes on as `Signal{speaking}`, a hint that SessionLink believes until it is over (P13). | `a_talker_the_link_hears_but_does_not_forward_is_shown_as_talking`, `a_host_that_says_someone_talks_is_believed_until_it_says_otherwise` |
|
||||
Reference in new issue
Block a user