Revert "Fixes 4010. After working with Microsoft SQL Server experts it turns out...
authorMarek Safar <marek.safar@gmail.com>
Mon, 13 Aug 2012 09:55:23 +0000 (10:55 +0100)
committerMarek Safar <marek.safar@gmail.com>
Mon, 13 Aug 2012 09:55:23 +0000 (10:55 +0100)
This breaks .net compatibility and probably just hides underlying problem

This reverts commit 8c2640437118b31b8d2033ec1da4fe0aa0ed4c5a.

mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs

index 7e2cfde31b259364139503c0115196a56abd4285..4cf4df0f4bb33e22b45fd40503e17b8b2dec1bad 100644 (file)
@@ -73,10 +73,10 @@ namespace System.Data.SqlClient
                // The set of SQL connection pools
                static TdsConnectionPoolManager sqlConnectionPools = new TdsConnectionPoolManager (TdsVersion.tds80);
 #if NET_2_0
-               const int DEFAULT_PACKETSIZE = 32768;
+               const int DEFAULT_PACKETSIZE = 8000;
                const int MAX_PACKETSIZE = 32768;
 #else
-               const int DEFAULT_PACKETSIZE = 32767;
+               const int DEFAULT_PACKETSIZE = 8192;
                const int MAX_PACKETSIZE = 32767;
 #endif
                const int MIN_PACKETSIZE = 512;