Proposal: Set threaded to False in sr1.#4641
Merged
gpotter2 merged 2 commits intosecdev:masterfrom Feb 3, 2025
Merged
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4641 +/- ##
=======================================
Coverage 81.64% 81.64%
=======================================
Files 359 359
Lines 86237 86238 +1
=======================================
+ Hits 70405 70407 +2
+ Misses 15832 15831 -1
|
Member
|
This was a hard choice but I don't think changing it is good idea. It misses more packets under heavy loads. This code should be entirely rewritten, but that's for another time |
|
I just had sr1 in mind, since it would only send one packet and immediately stop the send loop. My assumption here is that we would not see the same issue as we had on sr, since after sending we would have the main thread immediately executing the recv loop |
Member
|
Hm yeah I see your point. For |
gpotter2
reviewed
Jan 25, 2025
If the user doesn't specifiy threaded, we should set it to False in sr1 to eliminate the overhead of a thread creation
b022124 to
9e91011
Compare
gpotter2
approved these changes
Feb 3, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If the user doesn't specifiy threaded, we should set it to False in sr1 to eliminate the overhead of a thread creation
@gpotter2 What do you think?