[CSHARP-1736] Hostname connect fails on Linux Created: 05/Aug/16  Updated: 23/Sep/16  Resolved: 10/Aug/16

Status: Closed
Project: C# Driver
Component/s: Connectivity
Affects Version/s: 2.3.0-beta1
Fix Version/s: 2.3

Type: Bug Priority: Major - P3
Reporter: scott vickers Assignee: Craig Wilson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

.NET Command Line Tools (1.0.0-preview2-003121)

Product Information:
Version: 1.0.0-preview2-003121
Commit SHA-1 hash: 1e9d529bc5

Runtime Environment:
OS Name: Mac OS X
OS Version: 10.11
OS Platform: Darwin
RID: osx.10.11-x64


Issue Links:
Depends
is depended on by CSHARP-1177 Support for .NET Core Closed
Duplicate
is duplicated by CSHARP-1746 Can't resolve localhost as part of th... Closed
Related

 Description   

System.PlatformNotSupportedException when trying to connect to a hostname in Linux/OSX. Appears to be related to this issue:
https://github.com/dotnet/corefx/issues/8768

Fix from another library:
https://github.com/OPCFoundation/UA-.NETStandardLibrary/commit/5733d9c77bb8af4dcbd9ccf36161229b39c33250



 Comments   
Comment by Githook User [ 10/Aug/16 ]

Author:

{u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}

Message: CSHARP-1736: Fix issue with .NET Core not supporting DnsEndPoint in Socket.Connect due to bsd socket differences.
Branch: v2.4.x
https://github.com/mongodb/mongo-csharp-driver/commit/9c2097f349d5096a04ea81b0c9ceb60c7e1acee4

Comment by Githook User [ 10/Aug/16 ]

Author:

{u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}

Message: CSHARP-1736: Fix issue with .NET Core not supporting DnsEndPoint in Socket.Connect due to bsd socket differences.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/9c2097f349d5096a04ea81b0c9ceb60c7e1acee4

Comment by Craig Wilson [ 05/Aug/16 ]

Thanks for the report. We are aware of this oddness in .NET Core, but hadn't yet created a ticket.

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