Comments (5)
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.
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.
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.
Okay, thanks very much for the information. And the fantastic projects as well!
from sockjs-tornado.
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)
- SockJS protocol testsuite fails
- ERR_INCOMPLETE_CHUNKED_ENCODING from server
- Note on thread safety when using SockJSConnection.send() HOT 4
- error HOT 1
- Sending messages of 131069 bytes or more causes disconnects HOT 1
- Raven Sentry support
- Installing with PyPI brings wrong version
- ImportError: cannot import name 'errors'
- Happened easily AssertionError at websocket.py when connection over 20 clients. HOT 3
- socks-tornado does not support path kwargs
- Execution error with tornado 5.0 HOT 2
- Any chance for a new release on pypi? HOT 2
- URL Path XSS Vulnerability HOT 1
- Incompatible with Tornado 6.0 HOT 5
- Reflected-XSS Vulnerability HOT 1
- Please push tag for v1.0.7
- multiplex example error
- Wrong content length header HOT 1
- occasional exception when closing a connection
- SockJSConnection.on_open return value is ignored
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sockjs-tornado.