logstash/logstash — comment on commit d47c1dc98f67da1696307c6da8c223810a5159b9
File:  line 0
By chuckremes:

This idea could also be patched directly in the ffi-rzmq gem. Change #setsockopt to call #to_i or #to_s (as appropriate) on the different option types to force them to the correct type.

The downside is that the method could now raise an exception if the call to #to_i/#to_s fails.