From 136c2c4377f92f0f95d9ccda0f11070a8a303de2 Mon Sep 17 00:00:00 2001 From: Joe Vennix Date: Fri, 24 Oct 2014 13:01:06 -0500 Subject: [PATCH] Use the SNMP fix from master. --- lib/snmp/manager.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/snmp/manager.rb b/lib/snmp/manager.rb index a71599d72d..d84f9bcf4e 100644 --- a/lib/snmp/manager.rb +++ b/lib/snmp/manager.rb @@ -63,11 +63,8 @@ class RexUDPTransport rescue NoMethodError @socket.send(data, 0, host, port) rescue ::Errno::EISCONN - @socket.close - @socket = UDPSocket.open - @socket.send(data,0,host,port) + @socket.write(data) end - end def recv(max_bytes) @@ -719,4 +716,3 @@ class TrapListener end end -