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
deploy_nixos/nixos-deploy.sh: fix ControlPersist timeout #29
deploy_nixos/nixos-deploy.sh: fix ControlPersist timeout #29
Conversation
@betaboon: what problem does it solve? Persisted connections should automatically timeout and be discarded in the background. |
What I don't understand is why this is blocking the script in the first place. My understanding is that the TCP connection is maintained in the background somehow and shouldn't prevent the script from exiting. |
i wonder if this is related: |
926ac64
to
b57ab87
Compare
@betaboon I pushed another version that also cleans-up on unhappy paths. Since the ControlPath is now specific to this script I also moved it to be a temp file to avoid clashes with other potentially-running scripts. |
@zimbatm nice improvements. just checked them out and tested them with my setup. seems to work as expected :) |
thanks! |
thank you very much |
Thanks, I just tried it out in our deployment and it works. |
fixes #20 by gracefully closing the multiplexing master process gracefully.