Skip to content

TCP KeepAlive options having different measurements in Linux and Windows OS. #27759

@AfsanehR-zz

Description

@AfsanehR-zz

This question follows up conversation from PR dotnet/corefx#33024:

dotnet/corefx#33024 (comment)
According to these links:
1- https://msdn.microsoft.com/en-us/library/windows/desktop/dd877220%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396

2- http://man7.org/linux/man-pages/man7/tcp.7.html

The measurements for the TcpKeepAliveInterval and TcpKeepAliveTime in Windows and Linux OS are different. In Linux the TCP_KEEPINTVL and TCP_KEEPALIVE is set in seconds, while in Windows the SIO_KEEPALIVE_VALS values are measured in milliseconds.

In pr dotnet/corefx#33024 we are allowing TCPKeepAlive options on SqlClient code, but we are facing the issue that they would have different values according to the platform.

Would appreciate it if we could get some guidance regarding this.

Related threads:
https://github.com/dotnet/corefx/issues/28337#issuecomment-375752641
dotnet/corefx#29963

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions