Code Monkey home page Code Monkey logo

Comments (4)

toredash avatar toredash commented on June 11, 2024 1

@vdonato I made the assumption that this was a regression, but it seems this problem has been present in earlier builds of streamlit as well. My bad, I've removed that tick.

I noticed the same, that the streamlit code on this area has been stable for some time. For whats it worth, it seems that tornadoweb/tornado#3376 is solving the issue of tornado closing the ws connection prematurely, but with the logic error.

from streamlit.

github-actions avatar github-actions commented on June 11, 2024

If this issue affects you, please react with a 👍 (thumbs up emoji) to the initial post.

Your feedback helps us prioritize which bugs to investigate and address first.

Visits

from streamlit.

toredash avatar toredash commented on June 11, 2024

I'm wondering if this is a upstream bug in Tornado.

I did a TCP dump of the traffic locally where the websocket connection was established via curl, and indeed there is ping traffic being generated:
image

But the strange thing is that it terminates the connection after 30s, which seems to be a bug in tornado then.

Looking upstream, there seems to be one PR tornadoweb/tornado#3376 that attempts to solve this. I tested with the changes suggested in the PR, and this changes the traffic flow to this:
image

This works, but for some reason the ping comes at interval of 30s. I think this is related to the PR in question (logic error?)

from streamlit.

vdonato avatar vdonato commented on June 11, 2024

Thanks for reporting this @toredash!

Do you happen to remember the last streamlit version where you didn't observe this issue? Anecdotally, I remember inspecting network traffic and seeing websocket pings from tornado to the streamlit client at some point in the past, so there's a chance this is indeed an upstream tornado bug given that I don't think the code for this on our end has changed for quite some time (it has probably been months to years since the code related to this has been changed significantly).

from streamlit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.