[CSHARP-2953] Check TcpStreamFactory methods when targetting netstandard2.0 Created: 07/Feb/20  Updated: 07/May/21  Resolved: 07/May/21

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Robert Stam Assignee: Mikalai Mazurenka (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CSHARP-3117 Fix timeout connecting to server on L... Closed
Epic Link: Enable features that can now be supported when targetting netstandard2.0

 Comments   
Comment by Mikalai Mazurenka (Inactive) [ 07/May/21 ]

The Dns methods in TcpStreamFactory class have already been updated in scope of CSHARP-2946.
Another API change in netstandard2.0 related to this class is Socket.Connect being able to connect to multiaddress endpoints (dotnetcore 2.0 change), but it's not possible to implement it in our code due to usage of KeepAlive attribute, so unfortunately we should use the workaround for Unix and MacOS. Switching the workaround to depend on runtime environment rather than build target as it is currently implemented shows no performance improvements on Windows.
As a summary, no changes are possible to make in scope of this task, thus closing as implemented.
 

Generated at Wed Feb 07 21:43:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.