设定连接池的最大数目和延时timeout如数据库连接字符串:Data Source=localhost;Pooling=true;Min Pool Size=0;Max Pool Size=200;packet size=4096;Initial Catalog=sms_test;User ID=sa;password=;
这个是是重要“Pooling=true;Min Pool Size=0;Max Pool Size=200;”
指定最大和最小连接数!
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.