Lines Matching defs:info
369 lws_create_context(const struct lws_context_creation_info *info)
398 /* smaller default, can set in info->pt_serv_buf_size */
407 unsigned int lpf = info->fd_limit_per_thread;
419 if (lws_fi(&info->fic, "ctx_createfail1"))
436 if (!lws_check_opt(info->options, LWS_SERVER_OPTION_DISABLE_IPV6))
446 if (info->count_threads)
447 count_threads = (unsigned short)info->count_threads;
452 if (info->pt_serv_buf_size)
453 s1 = info->pt_serv_buf_size;
461 if (info->event_lib_custom) {
462 plev = info->event_lib_custom;
497 if (!lws_check_opt(info->options, map[n].flag))
505 if (!ok || lws_fi(&info->fic, "ctx_createfail_plugin_init")) {
513 fatal_exit_defer = !!info->foreign_loops;
517 lws_fi(&info->fic, "ctx_createfail_evlib_plugin")) {
542 if (lws_check_opt(info->options, LWS_SERVER_OPTION_LIBUV)) {
545 fatal_exit_defer = !!info->foreign_loops;
551 if (lws_check_opt(info->options, LWS_SERVER_OPTION_LIBEVENT)) {
559 if (lws_check_opt(info->options, LWS_SERVER_OPTION_GLIB)) {
567 if (lws_check_opt(info->options, LWS_SERVER_OPTION_LIBEV)) {
575 if (lws_check_opt(info->options, LWS_SERVER_OPTION_SDEVENT)) {
583 if (lws_check_opt(info->options, LWS_SERVER_OPTION_ULOOP)) {
594 if (!plev || lws_fi(&info->fic, "ctx_createfail_evlib_sel"))
603 if (!context || lws_fi(&info->fic, "ctx_createfail_oom_ctx")) {
628 ci.max_footprint = info->jitt_cache_max_footprint;
643 context->uid = info->uid;
644 context->gid = info->gid;
645 context->username = info->username;
646 context->groupname = info->groupname;
648 context->name = info->vhost_name;
649 if (info->log_cx)
650 context->log_cx = info->log_cx;
655 context->system_ops = info->system_ops;
657 context->protocols_copy = info->protocols;
659 context->vh_idle_grace_ms = info->vh_idle_grace_ms ?
660 info->vh_idle_grace_ms : 5000;
665 if (info->fic.fi_owner.count)
667 * This moves all the lws_fi_t from info->fi to the context fi,
670 lws_fi_import(&context->fic, &info->fic);
675 context->smd_ttl_us = info->smd_ttl_us ? info->smd_ttl_us :
681 context->smd_queue_depth = (uint16_t)(info->smd_queue_depth ?
682 info->smd_queue_depth :
724 context->metrics_policies = info->metrics_policies;
725 context->metrics_prefix = info->metrics_prefix;
826 context->pss_policies = info->pss_policies;
830 context->ss_proxy_bind = info->ss_proxy_bind;
831 context->ss_proxy_port = info->ss_proxy_port;
832 context->ss_proxy_address = info->ss_proxy_address;
844 if (info->extensions)
851 context->pss_policies_json = info->pss_policies_json;
854 context->pss_plugins = info->pss_plugins;
867 mbedtls_client_preload_filepath = info->mbedtls_client_preload_filepath;
900 * [ -> info->fops ]
914 if (info->fops)
915 prev->next = info->fops;
919 context->reject_service_keywords = info->reject_service_keywords;
921 if (info->external_baggage_free_on_destroy)
923 info->external_baggage_free_on_destroy;
927 context->pcontext_finalize = info->pcontext;
931 info->simultaneous_ssl_restriction;
933 info->simultaneous_ssl_handshake_restriction;
936 context->options = info->options;
944 if (info->rlimit_nofile) {
947 rl.rlim_cur = (unsigned int)info->rlimit_nofile;
948 rl.rlim_max = (unsigned int)info->rlimit_nofile;
997 if (info->fd_limit_per_thread) {
1007 context->token_limits = info->token_limits;
1013 if (info->alpn)
1014 context->tls.alpn_default = info->alpn;
1035 if (info->timeout_secs)
1036 context->timeout_secs = info->timeout_secs;
1042 if (info->max_http_header_data)
1043 context->max_http_header_data = info->max_http_header_data;
1045 if (info->max_http_header_data2)
1047 (unsigned short)info->max_http_header_data2;
1051 if (info->max_http_header_pool)
1052 context->max_http_header_pool = info->max_http_header_pool;
1054 if (info->max_http_header_pool2)
1056 (unsigned short)info->max_http_header_pool2;
1061 if (info->fd_limit_per_thread)
1081 if (info->early_smd_cb &&
1082 !lws_smd_register(context, info->early_smd_opaque, 0,
1083 info->early_smd_class_filter,
1084 info->early_smd_cb)) {
1100 if (info->retry_and_idle_policy &&
1101 info->retry_and_idle_policy->secs_since_valid_ping) {
1103 info->retry_and_idle_policy->secs_since_valid_ping;
1105 info->retry_and_idle_policy->secs_since_valid_hangup;
1149 pt_init_destroy(context, info,
1154 if (!info->ka_interval && info->ka_time > 0) {
1155 lwsl_cx_err(context, "info->ka_interval can't be 0 if ka_time used");
1170 context->ip_limit_ah = info->ip_limit_ah;
1171 context->ip_limit_wsi = info->ip_limit_wsi;
1172 context->pl_notify_cb = info->pl_notify_cb;
1209 if (info->server_string) {
1210 context->server_string = info->server_string;
1229 if (lws_plat_init(context, info) ||
1239 if (context->event_loop_ops->init_context(context, info))
1249 if (info->foreign_loops)
1250 lp = info->foreign_loops[n];
1266 pt_init_destroy(context, info,
1272 lws_context_init_ssl_library(context, info);
1274 context->user_space = info->user;
1279 lws_server_get_canonical_hostname(context, info);
1284 memcpy(context->caps, info->caps, sizeof(context->caps));
1285 context->count_caps = info->count_caps;
1376 info->register_notifier_list);
1381 * compatibly and make a default vhost using the data in the info
1383 if (!lws_check_opt(info->options, LWS_SERVER_OPTION_EXPLICIT_VHOSTS)) {
1384 if (!lws_create_vhost(context, info) ||
1396 if (info->http_nsc_filepath) {
1402 ci.u.nscookiejar.filepath = info->http_nsc_filepath;
1411 ci.max_footprint = info->http_nsc_heap_max_footprint;
1412 ci.max_items = info->http_nsc_heap_max_items;
1413 ci.max_payload = info->http_nsc_heap_max_payload;
1431 assert(lws_check_opt(info->options,
1470 lws_context_init_extensions(info, context);
1480 if (!lws_check_opt(info->options, LWS_SERVER_OPTION_EXPLICIT_VHOSTS))
1506 lws_fi_destroy(&info->fic);
1512 lws_fi_destroy(&info->fic);
1547 lws_fi_destroy(&info->fic);
1658 * destroys the context itself, setting what was info.pcontext to NULL.