-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
[v10.x backport] dgram: add support for UDP connected sockets #30480
Conversation
e07df6f
to
3cd4ea5
Compare
3cd4ea5
to
f0f3a11
Compare
f0f3a11
to
aad1844
Compare
Sorry for the churn there. I realized I made some tiny mistakes. Could someone please start the |
Added the `dgram.connect()` and `dgram.disconnect()` methods that associate/disassociate a udp socket to/from a remote address. It optimizes for cases where lots of packets are sent to the same address. Also added the `dgram.remoteAddress()` method to retrieve the associated remote address. Backport-PR-URL: nodejs#30480 PR-URL: nodejs#26871 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Matteo Collina <[email protected]> (cherry picked from commit 9e96017)
aad1844
to
458f017
Compare
This comment has been minimized.
This comment has been minimized.
Is that maybe #30030 rather than this backport? |
99915bc
to
8f3b8ca
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
CI: https://ci.nodejs.org/job/node-test-pull-request/29339/ |
ping @nodejs/releasers ... should this land in v10x at this point? |
cc @nodejs/lts Given that 10.x is now in maintenance and there's the uncertainty from the OP about whether it makes sense without a semver-major change (which obviously will not be backported) I'm leaning towards "no".
|
I would say no. |
I'm also leaning towards no. Feel free to close. 🙂 |
Added the
dgram.connect()
anddgram.disconnect()
methods thatassociate/disassociate a udp socket to/from a remote address.
It optimizes for cases where lots of packets are sent to the same
address.
Also added the
dgram.remoteAddress()
method to retrieve the associatedremote address.
PR-URL: #26871
Reviewed-By: Colin Ihrig [email protected]
Reviewed-By: Matteo Collina [email protected]
(cherry picked from commit 9e96017)
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAs an aside, this is only a backport of #26871. That PR had a
backport-requested-v10.x
label. Does this backport even make sense without the semver-major #21745? I don't know enough about UDP. @nodejs/dgram