# Let the kernel pick a random port · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/d0beb4badb9064893133c996b05c0748317adf24)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: d0beb4badb9064893133c996b05c0748317adf24

Requested commit: d0beb4badb9064893133c996b05c0748317adf24

Commit: d0beb4badb9064893133c996b05c0748317adf24

Tree: b13a21d8cf7aabf0ec43e6a70a1f61fbd4f5a6aa

Author: LemonBoy

Committer: LemonBoy

## Message

```
Let the kernel pick a random port

Avoid errors if the socket enters the TIME_WAIT state and we need to
re-execute this test before the OS releases it.

This problem was not really a problem before since the accept()-ed
socket was never closed on the server-side.

```

## Parents

- [676d7fc63c057d24a3cbaa30b786e63de6f40d4a](https://git.cafe/gitcafe/zig/commit/676d7fc63c057d24a3cbaa30b786e63de6f40d4a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/d0beb4badb9064893133c996b05c0748317adf24?format=markdown)
