Closed ph closed 7 years ago
Seems to be a bad test?
I can reproduce this on jruby 9.1.8.0
SNMP::TrapListener#exit
this closes the underlying socket (good!), and the in-flight socket.recvfrom
throws an IOError. This could be ok except that the TrapListener runs the IO call in a separate thread which is not available to Logstash. I'm not sure how rspec is capturing this, to be honest, but I think the fix is to have this exception not thrown during plugin termination.
https://travis-ci.org/logstash-plugins/logstash-input-snmptrap/jobs/236451960