Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: group custom packet size limits #2355

Merged
merged 1 commit into from
Nov 24, 2022

Conversation

JFreegman
Copy link
Member

@JFreegman JFreegman commented Oct 22, 2022

Lossy custom packets cannot be split, therefore they need to be limited to the maximum safe UDP packet size.


This change is Reviewable

@JFreegman JFreegman added bug Bug fix for the user, not a fix to a build script api break Change breaks API or ABI labels Oct 22, 2022
@JFreegman JFreegman added this to the v0.2.19 milestone Oct 22, 2022
toxcore/group_chats.c Show resolved Hide resolved
toxcore/tox.h Show resolved Hide resolved
@JFreegman JFreegman force-pushed the ngc_lossy_packet_size branch 3 times, most recently from d681094 to 3b62e99 Compare November 12, 2022 13:39
@pull-request-attention pull-request-attention bot assigned JFreegman and sudden6 and unassigned sudden6 Nov 12, 2022
Copy link

@sudden6 sudden6 left a comment

Choose a reason for hiding this comment

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

@JFreegman if you feel like it you could add a link to the reasoning for the 500 byte packet size limit. Anyway the PR looks good to me now.

@JFreegman JFreegman force-pushed the ngc_lossy_packet_size branch 3 times, most recently from 9848eca to 98fa2a3 Compare November 23, 2022 01:59
@JFreegman JFreegman force-pushed the ngc_lossy_packet_size branch 2 times, most recently from f892b73 to 0a6512c Compare November 24, 2022 16:41
Lossy custom packets cannot be split, therefore they need to be limited
to the maximum safe UDP packet size.
@JFreegman JFreegman force-pushed the ngc_lossy_packet_size branch from 0a6512c to b8aa21c Compare November 24, 2022 17:18
@codecov
Copy link

codecov bot commented Nov 24, 2022

Codecov Report

Merging #2355 (b8aa21c) into master (de97532) will decrease coverage by 0.04%.
The diff coverage is 78.94%.

@@            Coverage Diff             @@
##           master    #2355      +/-   ##
==========================================
- Coverage   78.17%   78.13%   -0.05%     
==========================================
  Files         141      141              
  Lines       31097    31108      +11     
==========================================
- Hits        24311    24306       -5     
- Misses       6786     6802      +16     
Impacted Files Coverage Δ
toxcore/tox.c 64.11% <ø> (ø)
toxcore/group_chats.c 69.28% <78.94%> (-0.19%) ⬇️
toxcore/friend_connection.c 84.25% <0.00%> (-1.16%) ⬇️
toxcore/TCP_client.c 83.37% <0.00%> (-0.71%) ⬇️
auto_tests/group_sync_test.c 84.65% <0.00%> (-0.47%) ⬇️
toxcore/TCP_server.c 78.58% <0.00%> (-0.19%) ⬇️
toxcore/onion_client.c 89.76% <0.00%> (-0.12%) ⬇️
toxcore/group.c 84.41% <0.00%> (-0.07%) ⬇️
toxav/toxav.c 69.23% <0.00%> (+0.14%) ⬆️
... and 3 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@JFreegman JFreegman merged commit b8aa21c into TokTok:master Nov 24, 2022
@JFreegman JFreegman deleted the ngc_lossy_packet_size branch November 24, 2022 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api break Change breaks API or ABI bug Bug fix for the user, not a fix to a build script
Development

Successfully merging this pull request may close these issues.

4 participants