Allow change default keep alive settings to run on Windows only - #232
Allow change default keep alive settings to run on Windows only#232quynh-ng wants to merge 4 commits into
Conversation
|
❌ Build Fleck 0.0.21-ci failed (commit 0874b2a78d by @quynh-ng) |
1 similar comment
|
❌ Build Fleck 0.0.21-ci failed (commit 0874b2a78d by @quynh-ng) |
|
Hi @statianzo, @Silvenga, The build fails but it has completely nothing to do with this pull request. @Silvenga put an IgnoreAttribute above the failing tests with an Until = "2018-04-29" property, and that date has already passed. Please pay attention to this pull request and consider merging it. Thanks |
|
I was concerned with how reliable the portability analyzer was when I started the port (it recorded 100% compatibility), I guess it turns out it doesn't check for everything. @statianzo, are you okay with me updating AppVeyor build to test under Linux as well? https://www.appveyor.com/docs/getting-started-with-appveyor-for-linux/ |
Of course. That sounds like a useful environment to test on. |
|
I ran the test on Ubuntu Linux and macOS High Sierra, the test fails with some reasons, when I looked at the results, I found 2 reasons that related to the runtime:
And I really don't known why the build is failed. What should I really need to do? |
|
❌ Build Fleck 0.0.22-ci failed (commit 789c4cb55e by @quynh-ng) |
1 similar comment
|
❌ Build Fleck 0.0.22-ci failed (commit 789c4cb55e by @quynh-ng) |
|
❌ Build Fleck 0.0.23-ci failed (commit 823abbd86c by @quynh-ng) |
1 similar comment
|
❌ Build Fleck 0.0.23-ci failed (commit 823abbd86c by @quynh-ng) |
|
@darkl Thanks Elad. Two ignore test are pass, but still got error on build: Fleck.Tests.WebSocketServerTests.ShouldSupportDualStackListenWhenServerV6All I don't get it... |
|
✅ Build Fleck 0.0.24-ci completed (commit 229b87de1b by @quynh-ng) |
1 similar comment
|
✅ Build Fleck 0.0.24-ci completed (commit 229b87de1b by @quynh-ng) |
|
Nice work on getting the build green again. Can the change can be done without replacing spaces with tabs? It's difficult to tell what was actually changed in the git history and looks like a whole file rewrite. |
|
I think the file is reformated by Visual Studio. Here my update, only 2 files just 10 lines of code SocketWrapper.cs: Line 10: using System.Runtime.InteropServices; Line 65 - 70: SetKeepAlive(socket, KeepAliveInterval, RetryInterval); ===> #if NET45 #else #endif WebSocketServer.cs: Line 8: using System.Runtime.InteropServices; Line 29 - 30: #else ==> #elif !NET45 |
|
@statianzo I made the described changes in #233. Elad |
The method "Socket.IOControl" is only available on Windows platform, we need to check before using its. This pull request contains the changes described in #232, with no tab/space changes.
|
Released on NuGet as 1.0.3 |
|
Thanks! |
…ianzo#233) The method "Socket.IOControl" is only available on Windows platform, we need to check before using its. This pull request contains the changes described in statianzo#232, with no tab/space changes.
The method "Socket.IOControl" is only available on Windows platform, we need to check before using its.