Mercurial > hg > nginx-quic
comparison src/http/ngx_http_core_module.c @ 7681:38c0898b6df7 quic
HTTP/3.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Fri, 13 Mar 2020 19:36:33 +0300 |
parents | 5d91389e0fd3 |
children | 5b7ec588de48 |
comparison
equal
deleted
inserted
replaced
7680:6fd2cce50fe2 | 7681:38c0898b6df7 |
---|---|
807 r->connection->log->action = NULL; | 807 r->connection->log->action = NULL; |
808 | 808 |
809 if (!r->internal) { | 809 if (!r->internal) { |
810 switch (r->headers_in.connection_type) { | 810 switch (r->headers_in.connection_type) { |
811 case 0: | 811 case 0: |
812 r->keepalive = (r->http_version > NGX_HTTP_VERSION_10); | 812 r->keepalive = (r->http_version == NGX_HTTP_VERSION_11); |
813 break; | 813 break; |
814 | 814 |
815 case NGX_HTTP_CONNECTION_CLOSE: | 815 case NGX_HTTP_CONNECTION_CLOSE: |
816 r->keepalive = 0; | 816 r->keepalive = 0; |
817 break; | 817 break; |
3998 return NGX_CONF_ERROR; | 3998 return NGX_CONF_ERROR; |
3999 #endif | 3999 #endif |
4000 } | 4000 } |
4001 | 4001 |
4002 if (ngx_strcmp(value[n].data, "http3") == 0) { | 4002 if (ngx_strcmp(value[n].data, "http3") == 0) { |
4003 #if (NGX_HTTP_SSL) | 4003 #if (NGX_HTTP_V3) |
4004 lsopt.http3 = 1; | 4004 lsopt.http3 = 1; |
4005 lsopt.type = SOCK_DGRAM; | 4005 lsopt.type = SOCK_DGRAM; |
4006 continue; | 4006 continue; |
4007 #else | 4007 #else |
4008 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, | 4008 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, |
4009 "the \"http3\" parameter requires " | 4009 "the \"http3\" parameter requires " |
4010 "ngx_http_ssl_module"); | 4010 "ngx_http_v3_module"); |
4011 return NGX_CONF_ERROR; | 4011 return NGX_CONF_ERROR; |
4012 #endif | 4012 #endif |
4013 } | 4013 } |
4014 | 4014 |
4015 if (ngx_strcmp(value[n].data, "spdy") == 0) { | 4015 if (ngx_strcmp(value[n].data, "spdy") == 0) { |