Config type Hash for sockopt doesn't work on zeromq

Description

So the problem is that ffi-rzmq requires that certain sockopts be specified as an integer. Others must be done as a string. No casting is done at all.

At worst, the changes will require us to basically cast everything to an int except those sockopts we know are strings. Currently there are only three so it shouldn't be that big of a deal.

What concerns me is spurious errors around casting issues or worse someone puts something intended as an integer in as a string and we cast it with to_i and it does something unexpected.

Activity

Show:
John E. Vincent
February 7, 2012, 2:20 AM

Per Jordan on irc, if it acts like an int, cast it to an int.

Fixed here:
https://github.com/logstash/logstash/commit/d47c1dc98f67da1696307c6da8c223810a5159b9

Assignee

John E. Vincent

Reporter

John E. Vincent

Labels

None

Fix versions

Affects versions

Configure