]> 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:32:45 +0000 (12:32 -0400)
Fixes: #3791
Change-Id: I0dade4fe0ecbb53b4a66881594f362986ba73ae8
Pull-request: https://bitbucket.org/zzzeek/sqlalchemy/pull-requests/89
(cherry picked from commit 285d7bbb3e11abdc9a931e35e4ee08ef611af5d4)

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

index d726435cf885018e4eb6c65a39612e70a390ef63..0e418423345e9283e8025d3871ab6f542131d280 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