streamlit does not produce WebSocket ping frames #8660
Labels
area:server
priority:P3
status:awaiting-user-response
Issue requires clarification from submitter
status:confirmed
Bug has been confirmed by the Streamlit team
type:bug
Something isn't working
Checklist
Summary
streamlit is supposed to generate WebSocket ping to ensure that the connection to the end-user is not terminated by any proxy sitting between the user and streamlit
Reproducible Code Example
No response
Steps To Reproduce
ENTRYPOINT ["streamlit", "hello"]
Expected Behavior
In
server.py
, there is TORNADO_SETTINGS (streamlit/lib/streamlit/web/server/server.py
Lines 61 to 74 in 406b1e6
Since this function does not currently work (tested in 1.34.0 of streamlit), deploying streamlit in any environment can cause connectivity issues, unless the developer writes their own ping logic into streamlit.
Current Behavior
No WebSocket ping messages is sent, code suggests it should be sent.
Is this a regression?
Debug info
Additional Information
I'm assuming this is a regression or upstream bug as a result of library update.
I've found similar issues and code changes related to this:
#3464
https://discuss.streamlit.io/t/websocketconnection-websocket-onerror/46298/10
The text was updated successfully, but these errors were encountered: