Skip to content
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

[Shortfin][SD] Error out on invalid ports #1029

Merged
merged 1 commit into from
Mar 4, 2025
Merged

Conversation

kuhar
Copy link
Member

@kuhar kuhar commented Mar 4, 2025

Check that specified ports are valid. Otherwise the server and the client will hang forever without any errors or warnings.

Check that specified ports are valid. Otherwise the server and the
client will hang forever without any errors or warnings.
@@ -403,6 +413,9 @@ def main(argv, log_config=UVICORN_LOG_CONFIG):
help="Use tunings for attention and matmul ops. 0 to disable.",
)
args = parser.parse_args(argv)
if not is_port_valid(args.port):
exit(3)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting flashbacks of "error 37" from a couple years ago but this is good enough for now.

@kuhar kuhar merged commit 4bd757a into nod-ai:main Mar 4, 2025
41 of 42 checks passed
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.

2 participants