Skip to content

Port number 65535 is valid for using #256

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

Open
dmitry-lipetsk opened this issue May 7, 2025 · 0 comments · May be fixed by #255
Open

Port number 65535 is valid for using #256

dmitry-lipetsk opened this issue May 7, 2025 · 0 comments · May be fixed by #255
Assignees

Comments

@dmitry-lipetsk
Copy link
Collaborator

dmitry-lipetsk commented May 7, 2025

Testgres cannot allocate a port number 65535, because it uses the range(1024, 65535):

self._available_ports: typing.Set[int] = set(range(1024, 65535))

Image

I think we have to allow usage of 65535 port number to enlarge our valid range of ports )

The fix is trivial - set ( range ( 1024 , 65536 )

Another problems in this code will be fixed, too.

See also

https://www.ncftp.com/ncftpd/doc/misc/ephemeral_ports.html

@dmitry-lipetsk dmitry-lipetsk self-assigned this May 7, 2025
dmitry-lipetsk added a commit to dmitry-lipetsk/testgres that referenced this issue May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant