Bug #108817 keepalive not working on linux,using Mysql.Data
Submitted: 19 Oct 2022 5:52 Modified: 19 Oct 2022 6:10
Reporter: li vo Email Updates:
Status: Duplicate Impact on me:
None 
Category:Connector / NET Severity:S3 (Non-critical)
Version:8.0.31 OS:Linux (centos)
Assigned to: CPU Architecture:Any
Tags: .Net Core

[19 Oct 2022 5:52] li vo
Description:
use "keepalive" in the connection string,on linux,It will throw PlatformNotSupportedException;after looking at mysql.data source code,SetKeepAlive just catch NotImplementedException to ignore the IOControl error.

How to repeat:
append "keepalive=120;" to connection string,and run on linux

Suggested fix:
SetKeepAlive add catch PlatformNotSupportedException to ignore the IOControl error.
[19 Oct 2022 6:10] MySQL Verification Team
Hello li vo,

Thank you for the report and feedback.
IMHO this is duplicate of Bug #97872, please see Bug #97872

regards,
Umesh