GithubHelp home page GithubHelp logo

Comments (5)

mrjoes avatar mrjoes commented on August 17, 2024

All of them are Tornado related.

First one is weird, looks like SSL bug: self.socket is None if stream is disconnected. And it tried to read from disconnected stream.

Next three are related, client drops connection before it was properly established or before it was properly closed.

If connection was not established properly, you don't care about it - it might be caused by clients behind restrictive proxies, etc. But it should not spam the log, agree here.

Also, if connectio is closing in safe_finish (last entry), it is not a problem as well. Though, should not be logged.

I'll CC @bdarnell, maybe he will have some additional feedback.

from sockjs-tornado.

bdarnell avatar bdarnell commented on August 17, 2024

I don't have much to add here other than that these kinds of issues are certainly possible given the way callbacks are run asynchronously (i.e. the socket object becomes None before the close callback is run). I'm not sure whether to consider these problems in the framework or in the application code (and if the latter, how to make them less likely).

from sockjs-tornado.

mrjoes avatar mrjoes commented on August 17, 2024

I'm fine if application can handle these kind of exceptions and suppress them.

In stack traces above there's no sockjs-tornado code (well, there is, but it is just slightly customized version of tornado.websocket module). I guess I can wrap most of the networking code with try/except, which should suppress such exceptions.

from sockjs-tornado.

aychedee avatar aychedee commented on August 17, 2024

Okay, thanks very much for the information. And the fantastic projects as well!

from sockjs-tornado.

hjwp avatar hjwp commented on August 17, 2024

Any thoughts on what the first line in each traceback means?

2012-05-15 00:59:18,052 WARNING:Write error on 191: [Errno 14] Bad address

and

2012-05-15 01:03:53,559 WARNING:Write error on 3: [Errno 32] Broken pipe

I think they are the root causes of the problem, and the tracebacks are just the visible effect of tornado picking up on something being broken... but what is causing these problems in the first place?

from sockjs-tornado.

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.