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(net): set correct max size for Datagram #21611

Merged
merged 10 commits into from
Jul 10, 2024

Conversation

billywhizz
Copy link
Contributor

Fixes #21609

@@ -385,6 +387,11 @@ class Datagram {
async send(p, opts) {
switch (this.addr.transport) {
case "udp":
if (p.length > UDP_DGRAM_MAXSIZE) {
Copy link
Contributor Author

@billywhizz billywhizz Dec 17, 2023

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.

@billywhizz
Copy link
Contributor Author

if there is anything you need me to do to get this landed please shout. maybe it has been fixed elsewhere?

@littledivy
Copy link
Member

@billywhizz Sorry for the late reviews. This looks good, can you rebase?

@littledivy littledivy added this to the 1.44 milestone May 23, 2024
@dsherret dsherret modified the milestones: 1.44, 1.45 Jul 10, 2024
Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks, Andrew!

@dsherret dsherret enabled auto-merge (squash) July 10, 2024 03:07
@dsherret dsherret merged commit 26bf448 into denoland:main Jul 10, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deno UDP/Datagram truncates messages greater than 1024 bytes
3 participants