]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Add "message 20017" (unexpected EOF from the server) to mssql.
authorKen Robbins <ken@surveymonkey.com>
Wed, 14 Sep 2016 19:13:30 +0000 (15:13 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 19 Sep 2016 16:31:57 +0000 (12:31 -0400)
Fixes: #3791
Change-Id: I0dade4fe0ecbb53b4a66881594f362986ba73ae8
Pull-request: https://bitbucket.org/zzzeek/sqlalchemy/pull-requests/89

doc/build/changelog/changelog_10.rst
lib/sqlalchemy/dialects/mssql/pymssql.py

index 9ca98ff375bc0fb92b99670b63d1690de4a9b733..3b180f5f697641aa47a1abb71eea6bb4c6ee9868 100644 (file)
 .. changelog::
     :version: 1.0.16
 
+    .. change::
+        :tags: bug, mssql
+        :tickes: 3791
+        :versions: 1.1.0
+
+        Added error code 20017 "unexpected EOF from the server" to the list of
+        disconnect exceptions that result in a connection pool reset.  Pull
+        request courtesy Ken Robbins.
+
     .. change::
         :tags: bug, orm.declarative
         :tickets: 3797
index 32e3bd9226a67c506c542a0e60bfbe46db227bb2..380418b3347d6f12e54466546a5350a185398dfa 100644 (file)
@@ -87,6 +87,7 @@ class MSDialect_pymssql(MSDialect):
             "Not connected to any MS SQL server",
             "Connection is closed",
             "message 20006",  # Write to the server failed
+            "message 20017",  # Unexpected EOF from the server
         ):
             if msg in str(e):
                 return True