Fix dual stack IPv4/IPv6 support on docker with uvicorn#99
Merged
nikazzio merged 5 commits intobrevia-ai:mainfrom May 26, 2025
Merged
Fix dual stack IPv4/IPv6 support on docker with uvicorn#99nikazzio merged 5 commits intobrevia-ai:mainfrom
nikazzio merged 5 commits intobrevia-ai:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR updates dependency versions to support dual-stack networking in Uvicorn.
- Bumps FastAPI from 0.104.1 to 0.115.12 for compatibility with newer Uvicorn features.
- Consolidates the Uvicorn dependency into a single inline entry with extras.
Files not reviewed (1)
- Dockerfile: Language not supported
Comments suppressed due to low confidence (2)
pyproject.toml:37
- Consider adding an integration test or CI step to validate that Uvicorn correctly binds IPv4 and IPv6 addresses to ensure dual-stack functionality works as expected.
uvicorn = {version = "^0.34.2", extras = ["standard"]}
pyproject.toml:17
- FastAPI was bumped from version 0.104.1 to 0.115.12, which may include breaking changes in 0.x releases. Please verify compatibility by running the full test suite and updating any deprecated endpoints or behaviors.
fastapi = "^0.115.12"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes a problem in dual stack mode (combined IPv4/IPv6) on the socket used by Uvicorn, which can be important in environments in which both IP versions are supported.
This can be shown in the default docker image - see this discussion and this comment
FastAPI and Uvicorn have been upgraded to the latest versions and now when using the new docker image dual stack mode is working as expected.