From: Ken Robbins Date: Wed, 14 Sep 2016 19:13:30 +0000 (-0400) Subject: Add "message 20017" (unexpected EOF from the server) to mssql. X-Git-Tag: rel_1_1_0~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=881369b949cff44e0017fdc28d9722ef3c26171a;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Add "message 20017" (unexpected EOF from the server) to mssql. Fixes: #3791 Change-Id: I0dade4fe0ecbb53b4a66881594f362986ba73ae8 Pull-request: https://bitbucket.org/zzzeek/sqlalchemy/pull-requests/89 --- diff --git a/doc/build/changelog/changelog_10.rst b/doc/build/changelog/changelog_10.rst index 9ca98ff375..3b180f5f69 100644 --- a/doc/build/changelog/changelog_10.rst +++ b/doc/build/changelog/changelog_10.rst @@ -18,6 +18,15 @@ .. 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 diff --git a/lib/sqlalchemy/dialects/mssql/pymssql.py b/lib/sqlalchemy/dialects/mssql/pymssql.py index 32e3bd9226..380418b334 100644 --- a/lib/sqlalchemy/dialects/mssql/pymssql.py +++ b/lib/sqlalchemy/dialects/mssql/pymssql.py @@ -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