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

Port reuse block fix #2453

Merged
merged 3 commits into from
Oct 14, 2022
Merged

Port reuse block fix #2453

merged 3 commits into from
Oct 14, 2022

Conversation

aliabid94
Copy link
Collaborator

@aliabid94 aliabid94 commented Oct 13, 2022

@pngwn fixed ports with the reuse_ports argument in get_first_available_port, but when it was called from networking.start_server, it was never set to True. I just removed the argument and made the reuse logic always happen. Hopefully will never have to deal with this annoying problem again!

Btw the port would only get clogged if you make an actual request to the server, e.g. open it in a tab. If you just started an app and killed it right after, it wouldn't. FYI in case you're testing this.

@github-actions
Copy link
Contributor

All the demos for this PR have been deployed at https://huggingface.co/spaces/gradio-pr-deploys/pr-2453-all-demos

Copy link
Member

@pngwn pngwn left a comment

Choose a reason for hiding this comment

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

This is awesome thanks! That pngwn character sounds like an idiot.

@aliabd aliabd merged commit 5089053 into main Oct 14, 2022
@aliabd aliabd deleted the fix_port_share branch October 14, 2022 04:15
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.

3 participants