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: partially fix a bug that prevented group part messages from sending #2609

Merged
merged 1 commit into from
Jan 28, 2024

Conversation

JFreegman
Copy link
Member

@JFreegman JFreegman commented Jan 27, 2024

When a peer leaves a group, they send a packet to the group indicating that they're leaving. However if this packet is sent via TCP, it gets put in a packet queue, which is then destroyed on the rest of the group cleanup process before ever being able to send.

This pr allows do_gc() to finish an iteration before cleaning the group up, which allows the TCP packet queue to be emptied. However this bug still exists on a tox_kill() event because we don't have a chance to do another do_gc() iteration.


This change is Reviewable

@JFreegman JFreegman added the bug Bug fix for the user, not a fix to a build script label Jan 27, 2024
@JFreegman JFreegman added this to the v0.2.19 milestone Jan 27, 2024
@JFreegman JFreegman changed the title fix: partially fix a bug that prevented group part messages from fix: partially fix a bug that prevented group part messages from sending Jan 27, 2024
Copy link

codecov bot commented Jan 27, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (eeaa039) 73.71% compared to head (d94246a) 73.72%.

Files Patch % Lines
toxcore/group_chats.c 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2609      +/-   ##
==========================================
+ Coverage   73.71%   73.72%   +0.01%     
==========================================
  Files         148      148              
  Lines       30366    30369       +3     
==========================================
+ Hits        22384    22390       +6     
+ Misses       7982     7979       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

sending.

When a peer leaves a group, they send a packet to the group
indicating that they're leaving. However if this packet is sent
via TCP, it gets put in a packet queue, which is then destroyed
on the rest of the group cleanup process before ever being able
to send.

This pr allows do_gc() to finish an iteration before cleaning the
group up, which allows the TCP packet queue to be emptied. However
this bug still exists on a tox_kill() event because we don't have
a chance to do another do_gc() iteration.
@pull-request-attention pull-request-attention bot assigned JFreegman and unassigned nurupo Jan 28, 2024
@toktok-releaser toktok-releaser merged commit d94246a into TokTok:master Jan 28, 2024
58 checks passed
@JFreegman JFreegman deleted the group_exit_packet branch January 28, 2024 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug fix for the user, not a fix to a build script
Development

Successfully merging this pull request may close these issues.

3 participants