-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow non-standard max length for a service name (#96)
A new method `ServiceDaemon.set_service_name_len_max()` is added to support setting a custom max length for the service name. A public constant SERVICE_NAME_LEN_MAX_DEFAULT is defined for the default / standard value. Service name length error reporting (a trade-off): it will no longer return Error directly from register() method for service name length errors. Instead, it will be reported in error log and DaemonEvent::Error received by any monitors. The register itself will not succeed in such error cases. See the test case changes for an example.
- Loading branch information
1 parent
a4e5c57
commit a07f550
Showing
4 changed files
with
111 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters