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.
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
udp: limit number of reads per event loop #16180
udp: limit number of reads per event loop #16180
Changes from all commits
a84505d
879cd6f
24ae38d
48a644f
b89f7fe
758c321
ded13a6
51c3404
f0949ea
0858725
001f228
efb5bef
09ba49d
fb6bb16
372b3e3
2151e2d
d9989e8
e0aae6f
dcda8e8
80e91f6
8cd5cda
45e3518
3be3b84
3d82197
077b6d3
33d1bd3
9928fb3
5700114
3ec57b7
7c0b9d4
c3f20a5
6622e2b
d8538ed
ee2db2d
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is READ in all caps?
also for naming is this the number of packets expected, or the number of packets the listener should be willing to read?
Should we make it clear in comments this is TCP specific?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
READ doesn't need to be all caps. Fixed.
For the naming confusion, what's the difference between "the number of packets expected" and "the number of packets the listener should be willing to read"? This interface provides a hint to UDP listener but eventually the listener will decide how many to read.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
READ doesn't need to be all caps. Fixed.
What's the difference between "the number of packets expected" and "the number of packets the listener should be willing to read"? This interface provides a hint to UDP listener but eventually the listener will decide how many to read.
UDP specific? This is in UdpListenerCallbacks after all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's expected vs allowed to be read.
If we have 10 sessions it's not that we expect 160 packets, it's that we'll read 16 packets per loop.
and yes, I meant UDP. UdpPackets maybe since tcp packets are a thing too?