Mercurial > hg > nginx
comparison src/stream/ngx_stream_core_module.c @ 9106:113e2438dbd4 quic
Stream: removed QUIC support.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Sun, 14 May 2023 12:05:35 +0400 |
parents | af5adec171b4 |
children |
comparison
equal
deleted
inserted
replaced
9105:8057e053480a | 9106:113e2438dbd4 |
---|---|
758 "ngx_stream_ssl_module"); | 758 "ngx_stream_ssl_module"); |
759 return NGX_CONF_ERROR; | 759 return NGX_CONF_ERROR; |
760 #endif | 760 #endif |
761 } | 761 } |
762 | 762 |
763 if (ngx_strcmp(value[i].data, "quic") == 0) { | |
764 #if (NGX_STREAM_QUIC) | |
765 ngx_stream_ssl_conf_t *sslcf; | |
766 | |
767 sslcf = ngx_stream_conf_get_module_srv_conf(cf, | |
768 ngx_stream_ssl_module); | |
769 | |
770 sslcf->listen = 1; | |
771 sslcf->file = cf->conf_file->file.name.data; | |
772 sslcf->line = cf->conf_file->line; | |
773 | |
774 ls->quic = 1; | |
775 ls->type = SOCK_DGRAM; | |
776 | |
777 continue; | |
778 #else | |
779 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, | |
780 "the \"quic\" parameter requires " | |
781 "ngx_stream_quic_module"); | |
782 return NGX_CONF_ERROR; | |
783 #endif | |
784 } | |
785 | |
786 if (ngx_strncmp(value[i].data, "so_keepalive=", 13) == 0) { | 763 if (ngx_strncmp(value[i].data, "so_keepalive=", 13) == 0) { |
787 | 764 |
788 if (ngx_strcmp(&value[i].data[13], "on") == 0) { | 765 if (ngx_strcmp(&value[i].data[13], "on") == 0) { |
789 ls->so_keepalive = 1; | 766 ls->so_keepalive = 1; |
790 | 767 |
889 } | 866 } |
890 | 867 |
891 #if (NGX_STREAM_SSL) | 868 #if (NGX_STREAM_SSL) |
892 if (ls->ssl) { | 869 if (ls->ssl) { |
893 return "\"ssl\" parameter is incompatible with \"udp\""; | 870 return "\"ssl\" parameter is incompatible with \"udp\""; |
894 } | |
895 #endif | |
896 | |
897 #if (NGX_STREAM_SSL && NGX_STREAM_QUIC) | |
898 if (ls->ssl && ls->quic) { | |
899 return "\"ssl\" parameter is incompatible with \"quic\""; | |
900 } | 871 } |
901 #endif | 872 #endif |
902 | 873 |
903 if (ls->so_keepalive) { | 874 if (ls->so_keepalive) { |
904 return "\"so_keepalive\" parameter is incompatible with \"udp\""; | 875 return "\"so_keepalive\" parameter is incompatible with \"udp\""; |