-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libcontainerd/supervisor: consolidate platform-specific defaults
Commit a000934 updated the default MaxRecvMsgSize and MaxSendMsgSize for Linux, but did not modify the defaults for Windows. Those options should not be platform-specific, which means that the only difference between the Linux and Windows config are the addresses for GRPC and Debug (Windows defaulting to a named pipe, whereas Linux sockets within exec-root). This patch - implements functions to return the default addresses for each platform - moves the defaults into `supervisor.Start()` - removes the now redundant `remote.setDefaults()` method It's worth noting that prior to this path, `remove.setDefaults()` would be applied _after_ any (custom) `DaemonOpt` was applied. However, none of the existing `DaemonOpt` options currently mutates these options. `remote` is also a non-exported type, so no external implementations can currently be created. It is therefore safe to set these defaults before options are applied. Signed-off-by: Sebastiaan van Stijn <[email protected]>
- Loading branch information
Showing
3 changed files
with
20 additions
and
25 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