C# connect to DB2 timeout

Use 50 task.factory.startnew to query 50 subbusinesses at the same time, and execute 50 methods, all of which are using to open the database connection and execute their own queries.

During high concurrency, C# always throws a connection timeout exception.

Please help me。

0 answers