[Mono-bugs] [Bug 383061] New: SqlConnection.Open() does not timeout when max pool size reached
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Apr 23 18:16:35 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=383061
Summary: SqlConnection.Open() does not timeout when max pool size
reached
Product: Mono: Class Libraries
Version: 1.9.0
Platform: x86
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Data.SqlClient
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: jfrayne at blizzard.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
for (int ii = 1; ii < 1000; ii++)
{
Console.WriteLine(ii);
SqlConnection cn = new SqlConnection("<yourConnStr>;Connect
Timeout=5");
cn.Open();
}
This should result in this System.InvalidOperationException in 5 seconds:
"Timeout expired. The timeout period elapsed prior to obtaining a connection
from the pool. This may have occurred because all pooled connections were in
use and max pool size was reached."
Instead, it just sits and waits.
I am using SQL Server 2005.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list