Skip to content

Add unit of measure and default to ConnectionTimeout #727

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

Merged
merged 1 commit into from
Oct 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/MySqlConnector/MySql.Data.MySqlClient/MySqlConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,10 @@ private SchemaProvider GetSchemaProvider()
SchemaProvider? m_schemaProvider;
#endif

/// <summary>
/// Gets the time (in seconds) to wait while trying to establish a connection
/// before terminating the attempt and generating an error. The default value is 15 seconds.
/// </summary>
public override int ConnectionTimeout => GetConnectionSettings().ConnectionTimeout;

public event MySqlInfoMessageEventHandler? InfoMessage;
Expand Down