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: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs