Skip to content

some fixes for messages without size header. - #1758

Merged
reidsunderland merged 1 commit into
developmentfrom
issue1754_pas1
Aug 17, 2026
Merged

some fixes for messages without size header.#1758
reidsunderland merged 1 commit into
developmentfrom
issue1754_pas1

Conversation

@petersilva

@petersilva petersilva commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

close #1754

Normally, a notification message should include the size of the file to be transferred. Following Postel's maxim, we want to handle it being missing elegantly:

Normally, a notification message should include the size of the file
to be transferred. Following Postel's maxim, we want to handle it being
missing elegantly:
* when the field is missing, don't crash #1754
* When we finish downloading a file, we know it's actual size,
  and if the field is missing it should be added.
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown

Test Results

360 tests   359 ✅  1m 49s ⏱️
  1 suites    1 💤
  1 files      0 ❌

Results for commit def8242.

♻️ This comment has been updated with latest results.

@andreleblanc11

Copy link
Copy Markdown
Member

The logic looks good to me. I think it also makes sense to set the message size if the source does not provide one.

@reidsunderland reidsunderland left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, it looks good

@reidsunderland
reidsunderland merged commit 0410b8a into development Aug 17, 2026
63 of 75 checks passed
@reidsunderland
reidsunderland deleted the issue1754_pas1 branch August 17, 2026 13:24
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.

Senders crash when using fileSizeMax and when a message is received without the size set

3 participants