Skip to content

Commit 2e08a60

Browse files
committed
Merge remote-tracking branch 'joseph/patch-1'
Add unit of measure and default to ConnectionTimeout.
2 parents b37505e + 016daf8 commit 2e08a60

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/MySqlConnector/MySql.Data.MySqlClient/MySqlConnection.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,10 @@ private SchemaProvider GetSchemaProvider()
400400
SchemaProvider? m_schemaProvider;
401401
#endif
402402

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

405409
public event MySqlInfoMessageEventHandler? InfoMessage;

0 commit comments

Comments
 (0)