Skip to content

Conversation

@ntninja
Copy link

@ntninja ntninja commented Dec 19, 2025

For UDP this means: No port → port 0 → OS will assign ephermal port
For UDS this means: No path → Use ::unbound() constructor from tokio → socket will be unbound (and therefore unable to receive messages)

Fixes #31661
Fixes #14214

@CLAassistant
Copy link

CLAassistant commented Dec 19, 2025

CLA assistant check
All committers have signed the CLA.

@ntninja ntninja force-pushed the feat-dgram-missing-addr branch 3 times, most recently from 076f396 to 4fde6b0 Compare December 19, 2025 21:52
@ntninja ntninja marked this pull request as draft December 21, 2025 11:43
@ntninja ntninja force-pushed the feat-dgram-missing-addr branch from 4fde6b0 to d5bf46a Compare December 26, 2025 00:41
@ntninja ntninja marked this pull request as ready for review December 26, 2025 01:24
@ntninja ntninja marked this pull request as draft December 27, 2025 16:23
@ntninja ntninja force-pushed the feat-dgram-missing-addr branch from d5bf46a to 19f2799 Compare December 27, 2025 16:40
@ntninja ntninja marked this pull request as ready for review December 27, 2025 16:40
@ntninja ntninja marked this pull request as draft December 27, 2025 16:42
@ntninja ntninja force-pushed the feat-dgram-missing-addr branch from 19f2799 to 0907105 Compare December 27, 2025 17:57
@ntninja ntninja marked this pull request as ready for review December 27, 2025 17:57
@ntninja ntninja marked this pull request as draft December 27, 2025 17:58
@ntninja ntninja force-pushed the feat-dgram-missing-addr branch from 0907105 to e696434 Compare December 27, 2025 18:20
@ntninja ntninja marked this pull request as ready for review December 27, 2025 18:20
@ntninja ntninja marked this pull request as draft December 27, 2025 18:20
Validation is also stricter for client ports, which now has to be in
range 1-65535, as connecting to “port 0” is invalid.
…ing an unbound socket

Useful if the socket is only used to send messages, but not receive them.
(ie: syslog, readiness notify socket, …)
@ntninja ntninja force-pushed the feat-dgram-missing-addr branch from e696434 to ecace9d Compare December 27, 2025 19:25
@ntninja ntninja marked this pull request as ready for review December 27, 2025 19:25
@ntninja ntninja marked this pull request as draft December 27, 2025 19:27
@ntninja ntninja marked this pull request as ready for review December 27, 2025 21:03
@ntninja
Copy link
Author

ntninja commented Dec 27, 2025

You should probably configure your CI so that it doesn’t reschedule all tests after they already passed when the PR was set to draft, then changed again to ready…

In any case: This is ready and passes now!

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.

unixpacket/udp transport should not evaluate a missing path/port as "undefined" Connect to AF_UNIX Socket in SOCK_DGRAM mode

2 participants