I'm running a cherrypy webservice and wondering what the best option is to recover from "connection reset by peer" for a pymssql connection via sqlalchemy. Right now I have to restart the webservice.
相关问题
- How to compare dates in sqlalchemy?
- Proper way to prevent SQLAlchemy from re-running q
- sqlalchemy: TypeError: unhashable type creating in
- Get rid of double quotation marks with SQLalchemy
- Bottle with CherryPy does not behave multi-threade
相关文章
- In sqlalchemy, is there a way to sort so that empt
- What is the proper way to insert an object with a
- Sqlalchemy, raw query and parameters
- SQLAlchemy + alembic: create schema migration
- SQLAlchemy - Is there a way to see what is current
- Flask app with ArcGIS, Arcpy does not run
- Sum fields in sqlAlchemy
- SQLAlchemy StaleDataError on deleting items insert
This seems to be a bug in the is_disconnect() method for pymssql where it ignore TCP connection and timeout failures, leaving the cursor in an unhappy state; see http://www.sqlalchemy.org/trac/ticket/2172. For now, you can monkey-patch as: