Skip to content

Commit

Permalink
Merge pull request #1 from jvennix-r7/merge-snmp-bsd-fix
Browse files Browse the repository at this point in the history
Use the SNMP fix from master.
  • Loading branch information
midnitesnake committed Oct 25, 2014
2 parents 36f6bcc + 136c2c4 commit e5347b4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/snmp/manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,8 @@ def send(data, host, port, flags = 0)
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)
Expand Down Expand Up @@ -719,4 +716,3 @@ def select_handler(trap)
end

end

0 comments on commit e5347b4

Please sign in to comment.