zeromq / netmq

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

NetMQ.SocketOptions.MaxMsgSize exception. #252

Closed Nemonic closed 9 years ago

Nemonic commented 9 years ago

Master branch.

NetMQ.SocketOptions.MaxMsgSize is an int property which is used to set NetMQ.zmq.Options.Maxmsgsize of type long in "Options.cs:234"

case ZmqSocketOptions.Maxmsgsize: Maxmsgsize = (long)optval; break;

Unboxing object(int) to (long) is invalid.

drewnoakes commented 9 years ago

Reproduced. Working on a unit test and patch now. Seems there are a few other properties on SocketOptions which cause trouble too.