-
-
Notifications
You must be signed in to change notification settings - Fork 34.3k
dgram: add option for using recvmmsg #59126
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
base: main
Are you sure you want to change the base?
Conversation
|
Review requested:
|
ecc5df0 to
fd1ca64
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #59126 +/- ##
==========================================
- Coverage 90.06% 88.55% -1.51%
==========================================
Files 645 704 +59
Lines 189130 208142 +19012
Branches 37094 40027 +2933
==========================================
+ Hits 170339 184323 +13984
- Misses 11511 15828 +4317
- Partials 7280 7991 +711
🚀 New features to boost your workflow:
|
fd1ca64 to
d09c31a
Compare
src/udp_wrap.cc
Outdated
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.
Can these fieds be initialized as part of the constructor member initializer list or inline in the member declaration?
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.
What if this multiplication overflows?
src/udp_wrap.cc
Outdated
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.
What if malloc() returns 0?
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.
Can we CHECK() in this case that mmsg_buf_ is empty?
src/udp_wrap.h
Outdated
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.
^ This should track mmsg_buf_
d09c31a to
89c252e
Compare
|
@addaleax Thanks for your review ! I have updated the code. |
89c252e to
aac2964
Compare
Add an option for using
recvmmsg.make -j4 test(UNIX), orvcbuild test(Windows) passes