nghttpx: Disallow copying Config

This commit is contained in:
Tatsuhiro Tsujikawa 2016-08-25 22:55:12 +09:00
parent 25ea41972a
commit 4749e66c67
2 changed files with 6 additions and 2 deletions

View File

@ -1272,8 +1272,6 @@ constexpr auto DEFAULT_ACCESSLOG_FORMAT = StringRef::from_lit(
namespace {
void fill_default_config(Config *config) {
*config = {};
config->num_worker = 1;
config->conf_path = "/etc/nghttpx/nghttpx.conf";
config->pid = getpid();

View File

@ -706,8 +706,14 @@ struct APIConfig {
};
struct Config {
Config() = default;
~Config();
Config(Config &&) = delete;
Config(const Config &&) = delete;
Config &operator=(Config &&) = delete;
Config &operator=(const Config &&) = delete;
HttpProxy downstream_http_proxy;
HttpConfig http;
Http2Config http2;