-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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(net): set correct max size for Datagram #21611
Conversation
ext/net/01_net.js
Outdated
@@ -385,6 +387,11 @@ class Datagram { | |||
async send(p, opts) { | |||
switch (this.addr.transport) { | |||
case "udp": | |||
if (p.length > UDP_DGRAM_MAXSIZE) { |
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.
we could just take this check out and leave the PR with the change above. if we try to send with a payload greater than whatever the OS allows (it seems macs define a much lower max size by default and CI is failing) we will throw back a system error. i can modify the test to handle this correctly.
if there is anything you need me to do to get this landed please shout. maybe it has been fixed elsewhere? |
@billywhizz Sorry for the late reviews. This looks good, can you rebase? |
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.
LGTM. Thanks, Andrew!
Fixes #21609