zeromq / netmq

A 100% native C# implementation of ZeroMQ for .NET
Other
2.95k stars 744 forks source link

Running NetMq on Debian crashs when bind to address #792

Closed Excelander closed 5 years ago

Excelander commented 5 years ago

Hi there,

I run into an exception when bind netmq-router to "tcp://localhost:2022"

Unhandled Exception: NetMQ.NetMQException: Exception of type 'NetMQ.NetMQException' was thrown. ---> System.Net.Sockets.SocketException: Operation not supported at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, String callerName) at System.Net.Sockets.Socket.SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, Int32 optionValue, Boolean silent) at System.Net.Sockets.Socket.SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, Int32 optionValue) at NetMQ.Core.Transports.Tcp.TcpListener.SetAddress(String addr) --- End of inner exception stack trace --- at NetMQ.Core.Transports.Tcp.TcpListener.SetAddress(String addr) at NetMQ.Core.SocketBase.Bind(String addr) at TcX.System.Messaging.Sockets.MessageRouter.Start() in D:\Repo\Git\TruControlX\Source\Backend\System\TcX.System.Messaging\Sockets\MessageRouter.cs:line 106 at TcX.System.SystemMessageRouter.Program.SuccessfullyParsed(String[] args, String address, Int32 port) in D:\Repo\Git\TruControlX\Source\Backend\Dispatcher\TcX.SystemMessageRouter.Host\Program.cs:line 44 at TcX.System.SystemMessageRouter.Program.Main(String[] args) in D:\Repo\Git\TruControlX\Source\Backend\Dispatcher\TcX.SystemMessageRouter.Host\Program.cs:line 18

Environment

NetMQ Version:    4.0.0.1
Operating System:  Debian GNU/Linux 8 (jessie)
.NET Version: .Net Core 2.0     

Expected behaviour

Should bind socket to address.

Actual behaviour

Crashs with exception

Steps to reproduce the behaviour

Any idea what could be the problem?