-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Controller: Handle empty HTTP response and add restart functionality for ns-plug service #977
Conversation
f6396c5
to
7e2d4bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens on boot if the controller is down?
What is the output of /etc/init.d/ns-plug status
?
Make sure that ns-plug always try to connect to the controller. This fix will allow automatica re-connection in case of disaster recovery of the remote controller.
3da22c0
to
b9a581c
Compare
so if I turn off the NS8 node and I restart nethsecurity
The ns-plug is running I turn on the NS8 node and I get
|
@filippocarletti could you please review again? |
Implement handling for empty responses in HTTP code extraction and introduce a restart command that triggers when the ns-plug service goes down. A new script for restarting the ns-plug service has also been added.
when the server does not answer we have this kind of error because the
.code
is missing with jqwhen the tun-nsplug goes down, it restarts ns-plug, we have a countdown about 1 minute to connect again to the server and we give up
#978
This PR tries to fix che current scenario: