-
Notifications
You must be signed in to change notification settings - Fork 752
NETMQ fails on Linux: Windows-specific control codes and is not supported on this platform. #958
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
up |
FYI, support for TCP keep-alive was added to #if NETCOREAPP3_1
// for .NET (Core) with the new socket options, use them (N.B. SetSocketOption units are seconds, not milliseconds)
if (m_options.TcpKeepaliveIdle != -1)
m_s.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.TcpKeepAliveTime, m_options.TcpKeepaliveIdle / 1000);
if (m_options.TcpKeepaliveIntvl != -1)
m_s.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.TcpKeepAliveInterval, m_options.TcpKeepaliveIntvl / 1000);
#else
// ... retain existing code path for Windows / .NET Framework
#endif |
Any news on the issue? When a fix could be expected? |
up! |
Running with net6.0 is failing as well! |
up! |
bump |
I added wjrogers suggestion to a branch. For simplicity only .net8 is now supported: https://github.com/chrbauer/netmq/tree/net8/tcp-keepalive-linux It compiles, all tests are green. All nugets are up to date. |
What do we need to do for an acceptable pull request?
|
Hm. netcoreapp3.1 is not working, but net8.0. |
Environment
Expected behaviour
should work as promised on .NET Core platform
Actual behaviour
Fails
Steps to reproduce the behaviour
try to connect to a NETMQ server from ASP.NET Core app
The text was updated successfully, but these errors were encountered: