Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The connection timeout setting time is inconsistent with the actual timeout time #1473

Open
lsczyzkb opened this issue Apr 23, 2024 · 0 comments

Comments

@lsczyzkb
Copy link

lsczyzkb commented Apr 23, 2024

Software versions
MySqlConnector version:2.2.6
Server type (MySQL, MariaDB, Aurora, etc.) and version: 8.0.34-commercial
.NET version: 6.0
(Optional) ORM NuGet packages and versions: SqlSugar 5.1.4.126

Describe the bug
The connection timeout setting time is inconsistent with the actual timeout time, Connection timeout setting of 15 seconds, time timeout takes 15 minutes. But at this time, the number of database connections is not high, and the network is also normal.

Exception
1713855717097

Code sample

 DateTime st = DateTime.Now;
 try
 {
     this.Connection.Open();
 }
 catch (Exception ex)
 {
     var ts = DateTime.Now - st;
     Check.Exception(true, ErrorMessage.ConnnectionOpen, ex.Message + $" ConnectionTimeout={this.Connection.ConnectionTimeout};" + $"Use Time {ts}" + $" DbType=\"{this.Context.CurrentConnectionConfig.DbType}\";ConfigId=\"{this.Context.CurrentConnectionConfig.ConfigId}\"");
 }

Expected behavior
Correct timeout time and provide feasible solutions

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant