zeromq / clrzmq4

ZeroMQ C# namespace (.NET and mono, Windows, Linux and MacOSX, x86 and amd64)
GNU Lesser General Public License v3.0
241 stars 112 forks source link

Zmq Unknown error (110) from router socket #30

Closed gillima closed 7 years ago

gillima commented 9 years ago

I use a router socket with router.RouterMandatory = RouterMandatory.Report

According to http://api.zeromq.org/4-0:zmq-setsockopt#toc24 the router should return EHOSTUNREACH when a message can not be routed but i get Unknown error (110) when i close the connected dealer socket.

try
{
   this.router.SendMore(new ZFrame(client.Id));
   this.router.Send(new ZFrame(rawMessage));
}
catch (ZException ex)
{
   System.Diagnostics.Debug.Assert(ex.ErrNo == ZError.EHOSTUNREACH);
}
metadings commented 9 years ago

Well on Linux (Posix) systems there is ETIMEDOUT == 110... but I don't know...?

sigiesec commented 7 years ago

This is probably fixed by #98. The error codes were not correct on Windows.