@@ -331,7 +331,6 @@ class webserver
331331 render_ptr internal_error_resource = 0x0
332332 );
333333 webserver (const create_webserver& params);
334- webserver& operator =(const webserver& b);
335334 /* *
336335 * Destructor of the class
337336 **/
@@ -471,38 +470,38 @@ class webserver
471470 **/
472471 void sweet_kill ();
473472 private:
474- int port;
475- http_utils::start_method_T start_method;
476- int max_threads;
477- int max_connections;
478- int memory_limit;
479- int connection_timeout;
480- int per_IP_connection_limit;
473+ const int port;
474+ const http_utils::start_method_T start_method;
475+ const int max_threads;
476+ const int max_connections;
477+ const int memory_limit;
478+ const int connection_timeout;
479+ const int per_IP_connection_limit;
481480 log_access_ptr log_access;
482481 log_error_ptr log_error;
483482 validator_ptr validator;
484483 unescaper_ptr unescaper;
485484 const struct sockaddr * bind_address;
486485 int bind_socket;
487- int max_thread_stack_size;
488- bool use_ssl;
489- bool use_ipv6;
490- bool debug;
491- bool pedantic;
492- std::string https_mem_key;
493- std::string https_mem_cert;
494- std::string https_mem_trust;
495- std::string https_priorities;
496- http_utils::cred_type_T cred_type;
497- std::string digest_auth_random;
498- int nonce_nc_size;
486+ const int max_thread_stack_size;
487+ const bool use_ssl;
488+ const bool use_ipv6;
489+ const bool debug;
490+ const bool pedantic;
491+ const std::string https_mem_key;
492+ const std::string https_mem_cert;
493+ const std::string https_mem_trust;
494+ const std::string https_priorities;
495+ const http_utils::cred_type_T cred_type;
496+ const std::string digest_auth_random;
497+ const int nonce_nc_size;
499498 bool running;
500- http_utils::policy_T default_policy;
501- bool basic_auth_enabled;
502- bool digest_auth_enabled;
503- bool regex_checking;
504- bool ban_system_enabled;
505- bool post_process_enabled;
499+ const http_utils::policy_T default_policy;
500+ const bool basic_auth_enabled;
501+ const bool digest_auth_enabled;
502+ const bool regex_checking;
503+ const bool ban_system_enabled;
504+ const bool post_process_enabled;
506505 bool single_resource;
507506 pthread_mutex_t mutexwait;
508507 pthread_rwlock_t runguard;
@@ -539,6 +538,8 @@ class webserver
539538
540539 std::map<std::string, details::event_tuple> event_suppliers;
541540
541+ webserver& operator =(const webserver& b);
542+
542543 void init (render_ptr single_resource);
543544 static void * select (void * self);
544545 void schedule_fd (int fd, fd_set* schedule_list, int * max);
0 commit comments