You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add onidle element into responder endpoint chain, and configure it to stop the server on callback.
Add timeout parameter to server config.
Timeout should be defined as a pointer in the config to allow to determine whether the corresponding environment variable is set. If env variable was not set, then we shouldn't add the element.
Add a test that checks that the server successfully dies on specified timeout.
The text was updated successfully, but these errors were encountered:
denis-tingaikin
changed the title
Add test for onidle element
Add onidle chain element into cmd-nse-icmp-responder and cover it by docker tests
May 13, 2021
It seems like the simplest way here is to simply have onidle.NewServer interpret a timeout of 0 as 'no timeout' and return null.NewServer ... that way we can set an NSM_ONIDLE_TIMEOUT env variable with default 0 and things work as normal unless its set, and if it is set, we get the onidle behavior. Thoughts?
Overview
We need to test the new
onidle
chain element.Implementation details
onidle
element into responder endpoint chain, and configure it to stop the server on callback.Timeout should be defined as a pointer in the config to allow to determine whether the corresponding environment variable is set. If env variable was not set, then we shouldn't add the element.
References
networkservicemesh/sdk#892
The text was updated successfully, but these errors were encountered: