diff options
author | Neale Ferguson <neale@sinenomine.net> | 2012-08-09 20:12:53 +0400 |
---|---|---|
committer | Neale Ferguson <neale@sinenomine.net> | 2012-08-09 20:12:53 +0400 |
commit | 8c2640437118b31b8d2033ec1da4fe0aa0ed4c5a (patch) | |
tree | cc82bad1a3d578e7eaf16a13ada8019c03d30bb7 /mcs/class/System.Data | |
parent | 74f598ce37222d5916f7f8788f09da533df7a1d0 (diff) |
Fixes 4010. After working with Microsoft SQL Server experts it turns out we were able to drive so many packets to the server we were causing it grief. By increasing the packet level size this problem disappears.
Diffstat (limited to 'mcs/class/System.Data')
-rw-r--r-- | mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs index 4cf4df0f4bb..7e2cfde31b2 100644 --- a/mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs +++ b/mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs @@ -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 = 8000; + const int DEFAULT_PACKETSIZE = 32768; const int MAX_PACKETSIZE = 32768; #else - const int DEFAULT_PACKETSIZE = 8192; + const int DEFAULT_PACKETSIZE = 32767; const int MAX_PACKETSIZE = 32767; #endif const int MIN_PACKETSIZE = 512; |