logstash-plugins / logstash-input-wmi

Apache License 2.0
3 stars 7 forks source link

Infinite loop on WMI input. #4

Open jordansissel opened 9 years ago

jordansissel commented 9 years ago

(This issue was originally filed by @barakSpoj at https://github.com/elastic/logstash-contrib/issues/150)


Hi,

Wanted to point out a potential bug on wmi.rb. on row 70 there is a retry command in case of exception raise. The problem is in case of error on the WMI socket connection, there is no re-connection command and a straight jump to the query all over again what might cause an infinite loop. I suggest either to remove the retry or set a fixed number of retries, or put a re-connection section inside the begin/rescue scope.