Comments (4)
I suppose you closed connection twice.
But I can't confirm since your code is not reproducible code.
No one but you can investigate your problem is caused by Tornado-MySQL or your code.
from tornado-mysql.
I think the issue is with Tornado-MySQL because the lines I've written, these are the only lines of code that are being executed and throwing this error. The error is thrown when it executes conn.close() .
In my code, I don't see the connection being closed at any point other then the last line.
Can you try to replicate this issue? I think to do so, all you have to do is change the db='camera' (with your database name) line and complete the insert query I've left half written.
I tried to check Tornado-MySQL code, and I couldn't find any point where the connection is closed. I don't know if making the connection async is making the connection go away or there is an issue with my code (which I really doubt so) or the issue is with Tornado-MySQL.
from tornado-mysql.
I think to do so, all you have to do is change the db='camera' (with your database name) line
OK, but...
and complete the insert query I've left half written.
Why don't you do?
And there is need to make your code to valid Tornado application.
I don't use tornado for a long time.
I need to read doc to know how to run coroutine in simple script.
Additionally, if I can't reproduce, I waste my energy and time.
from tornado-mysql.
I can't reproduce it with this script.
https://gist.github.com/methane/068a269fc804fa2e39a53be3c55e275a
from tornado-mysql.
Related Issues (20)
- Get Exception socket.error: error(9, 'Bad file descriptor') in testing. HOT 2
- Release a new version to fix the pool hungup bug HOT 1
- how to set read_timeout? HOT 3
- What's the suitable way to know whether the sql is executed successfully or not? HOT 1
- Handle connect_timeout
- Why doesn't this repo make mysql faster than torndb? HOT 8
- can't get a connection when using connection pool if max_open_connections=0 HOT 1
- When to use pool vs the other option? HOT 1
- LOAD DATA LOCAL Broken? HOT 5
- what is the problem? HOT 2
- DictCursor causing AttributeError: 'Connection' object has no attribute 'errorhandler' HOT 6
- Random Response corruption HOT 3
- tornado_mysql/cursors.py: line 233: yield gen.Return(args) HOT 1
- multiple queries with warnings in one execute() HOT 1
- pools how to commit?
- 'Future' object has no attribute 'cursor'
- Python3.6 Tornado5.0 runtests tornado_mysql.err.OperationalError: (2006, 'MySQL server has gone away (Stream is closed)') HOT 4
- Stream is closed HOT 4
- Cannot connect to MySQL after upgrade to v8 HOT 1
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 tornado-mysql.