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
Stumbled upon this project, looks cool. Definitlely need stuff like this to work around untrustworthy CAs. Was browsing the source, wondering what's the current purpose of the writePid function in convergence-notary.py? Typically you first lock the pid file (via POSIX voluntary File Locking API or something), then write the pid (for debug, if you care about it), then unlock only when the program exits. That way, whenever a user tries to spawn the daemon a second time, or even run in foreground, an exception will be raised upon the lock attempt and the duplicate instance can exit gracefully. Also, this should all happen earlier, before binding ports and such.
Unless you want to allow multiple instances? To present different notary "faces" to the world from the same host? I can't think of a good use case for that, unless you want to obfuscate your relationship as a notary for user X from user Y. In that case you would maybe rename the .pid file to convergence-cert-fingerprint.pid or something.
Sorry to sound like the peanut gallery, I'm not a python guy. Maybe I'll learn some syntax and submit a patch.
The text was updated successfully, but these errors were encountered:
No reason, the PID was thrown in there so that init scripts would have something to work with. Hook me up with a pull request for some cleaner code, and we'll go with that.
Stumbled upon this project, looks cool. Definitlely need stuff like this to work around untrustworthy CAs. Was browsing the source, wondering what's the current purpose of the writePid function in convergence-notary.py? Typically you first lock the pid file (via POSIX voluntary File Locking API or something), then write the pid (for debug, if you care about it), then unlock only when the program exits. That way, whenever a user tries to spawn the daemon a second time, or even run in foreground, an exception will be raised upon the lock attempt and the duplicate instance can exit gracefully. Also, this should all happen earlier, before binding ports and such.
Unless you want to allow multiple instances? To present different notary "faces" to the world from the same host? I can't think of a good use case for that, unless you want to obfuscate your relationship as a notary for user X from user Y. In that case you would maybe rename the .pid file to convergence-cert-fingerprint.pid or something.
Sorry to sound like the peanut gallery, I'm not a python guy. Maybe I'll learn some syntax and submit a patch.
The text was updated successfully, but these errors were encountered: