libplanet icon indicating copy to clipboard operation
libplanet copied to clipboard

Make port option non-nullable

Open greymistcube opened this issue 3 years ago • 2 comments
trafficstars

I'd say using zero port by default to signal port binding will happen dynamically to a freely available port is pretty standard.

From what I gather, from a lower level network specification standpoint, zero port is reserved and not specifically used for anything.[^1] Many socket related APIs thus simply use zero port as a "wildcard" port. As we aren't really in raw socket programming business, and NetMQ also follows this convention, we might as well. See this GRC page for more info. 😗

[^1]: I didn't survey the direct source material, but secondary sources mention zero port is reserved and its use is not specified neither by IETF nor IANA. From what I gather, reserved is different from unassigned in the sense that a reserved port is not to be used.

greymistcube avatar Aug 26 '22 16:08 greymistcube

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

stale[bot] avatar Jan 08 '23 04:01 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

stale[bot] avatar May 22 '23 00:05 stale[bot]