1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00
node-red-nodes/io
bimalyn-IBM 2204d5835f Fix: SNMP fails to close/destroy sessions when it errors (#318)
* I've modified the snmp libraries so that the server and the community can be defined by the msg.
Error will be thrown if you try to override what was defined in the node.
Verified that the contents of msg is no longer clobbered.

Signed-off-by: Bryan Malyn <bimalyn@us.ibm.com>

* Replaced tabs with 4 spaces.
Signed-off-by: Bryan Malyn <bimalyn@us.ibm.com>

* fix extra spacing

Signed-off-by: Bryan Malyn <bimalyn@us.ibm.com>

* Standardise node.error to include msg so that errors can caught

Signed-off-by: Bryan Malyn <bimalyn@us.ibm.com>

* Update documentation for snmp nodes

fixed documentation as noted, removed conflict and iff from documention
remove node.warns if host or community are set in both the node config and msg

Signed-off-by: Bryan Malyn <bimalyn@us.ibm.com>

* FIX: Close net-snmp sessions
Signed-off-by: Bryan Malyn <bimalyn@us.ibm.com>

* Fix 2: The previous push did not cleanly address the problem.

This commit uses a singleton aproach to create socket.
It still needs to be tested to see if there is any issue to the never-close,
but reuse socket model. My only concern is if a socket dies, do we need to do something to reestablish it?

Signed-off-by: Bryan Malyn <bimalyn@us.ibm.com>
2017-05-30 17:15:36 +01:00
..
emoncms emoncms - improve check for no input 2017-02-06 22:30:00 +00:00
mdns patch mdns resolver sequence to stay working on Pi. 2017-04-12 20:33:55 +01:00
mqlight Re-lint a load of nodes 2017-01-29 17:45:44 +00:00
ping Add freebsd as a valid platform (#274) 2017-02-06 22:13:19 +00:00
serialport Re-lint a load of nodes 2017-01-29 17:45:44 +00:00
snmp Fix: SNMP fails to close/destroy sessions when it errors (#318) 2017-05-30 17:15:36 +01:00
stomp Re-lint a load of nodes 2017-01-29 17:45:44 +00:00
wol Re-lint a load of nodes 2017-01-29 17:45:44 +00:00