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
✏️ Fix ping parameters annotation in Config class #1127
Conversation
https://github.com/aaugustin/websockets/blob/361f38066622636eff8d9e0d3d071e93e8e02b05/src/websockets/legacy/protocol.py#L1097 actually pretty sure they should be optional to allow for disabling ping? |
uvicorn/config.py
Outdated
@@ -145,8 +145,8 @@ def __init__( | |||
http: Union[Type[asyncio.Protocol], HTTPProtocolType] = "auto", | |||
ws: Union[Type[asyncio.Protocol], WSProtocolType] = "auto", | |||
ws_max_size: int = 16 * 1024 * 1024, | |||
ws_ping_interval: int = 20, | |||
ws_ping_timeout: int = 20, | |||
ws_ping_interval: float = 20, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these should be Optional [float]
@graingert True! Thanks for the review! I'm going to push the fix later on. |
* ✏️ Fix Config init function annotation * add optional to ping parameters
* ✏️ Fix Config init function annotation * add optional to ping parameters
Hard to find 😅