cnblogs / EnyimMemcachedCore

.NET Memcached client. Available on https://www.nuget.org/packages/EnyimMemcachedCore
Apache License 2.0
162 stars 45 forks source link

Version 2.1.14 runs fine on aws lambda .netcore 2.1 (linux) but upgrading to 2.4.1 fails. #138

Closed Efrat1234567 closed 4 years ago

Efrat1234567 commented 4 years ago

Hi. After upgrading I'm getting the following errors:

System.PlatformNotSupportedException: Sockets on this platform are invalid for use after a failed connection attempt. at System.Net.Sockets.Socket.ThrowMultiConnectNotSupported() at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)

My last working version (2.1.14) used " Socket.Connect(IPAddress address, int port)" method.

Why was this changed in the newer versions? Are they not compatible with linux? I have tried all versions after 2.1.14 and all of them is failing on linux with same error.

Is it possible to fix it - to use again the old method but with auto discovery giving only the cluster configuration endpoint?

Thanks, Efrat.

cnblogs-dudu commented 4 years ago

Apply a workaround for this issue in EnyimMemcachedCore 2.4.2.