Skip to content

Fix possible packet loss #30701

Open
giorka wants to merge 2 commits into
telegramdesktop:devfrom
giorka:patch-1
Open

Fix possible packet loss #30701
giorka wants to merge 2 commits into
telegramdesktop:devfrom
giorka:patch-1

Conversation

@giorka

@giorka giorka commented May 16, 2026

Copy link
Copy Markdown

This fixes a possible outbound E2E packet loss issue in Call::checkForOutboundMessages().

Previously, only the last message returned by call_pull_outbound_messages() was forwarded:

result.value().back()

However, the API returns a collection of outbound messages, so multiple pending packets could be dropped if more than one message was queued between polls.

The updated implementation forwards all outbound messages in order instead of only the last one.

@CLAassistant

CLAassistant commented May 16, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@23rd

23rd commented May 19, 2026

Copy link
Copy Markdown
Collaborator

Indentations are incorrect.

@giorka

giorka commented May 19, 2026

Copy link
Copy Markdown
Author

Oops, I missed the project's formatting style. Fixed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants