comparison src/http/ngx_http_core_module.c @ 8167:5d91389e0fd3 quic

Initial QUIC support in http.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 28 Feb 2020 13:09:51 +0300
parents 7999d3fbb765
children 38c0898b6df7
comparison
equal deleted inserted replaced
8166:7999d3fbb765 8167:5d91389e0fd3
3820 { 3820 {
3821 lsopt.default_server = 1; 3821 lsopt.default_server = 1;
3822 continue; 3822 continue;
3823 } 3823 }
3824 3824
3825 if (ngx_strcmp(value[n].data, "quic") == 0) {
3826 lsopt.type = SOCK_DGRAM;
3827 continue;
3828 }
3829
3830 if (ngx_strcmp(value[n].data, "bind") == 0) { 3825 if (ngx_strcmp(value[n].data, "bind") == 0) {
3831 lsopt.set = 1; 3826 lsopt.set = 1;
3832 lsopt.bind = 1; 3827 lsopt.bind = 1;
3833 continue; 3828 continue;
3834 } 3829 }
3998 continue; 3993 continue;
3999 #else 3994 #else
4000 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 3995 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
4001 "the \"http2\" parameter requires " 3996 "the \"http2\" parameter requires "
4002 "ngx_http_v2_module"); 3997 "ngx_http_v2_module");
3998 return NGX_CONF_ERROR;
3999 #endif
4000 }
4001
4002 if (ngx_strcmp(value[n].data, "http3") == 0) {
4003 #if (NGX_HTTP_SSL)
4004 lsopt.http3 = 1;
4005 lsopt.type = SOCK_DGRAM;
4006 continue;
4007 #else
4008 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
4009 "the \"http3\" parameter requires "
4010 "ngx_http_ssl_module");
4003 return NGX_CONF_ERROR; 4011 return NGX_CONF_ERROR;
4004 #endif 4012 #endif
4005 } 4013 }
4006 4014
4007 if (ngx_strcmp(value[n].data, "spdy") == 0) { 4015 if (ngx_strcmp(value[n].data, "spdy") == 0) {