Mercurial > hg > nginx
comparison src/http/v3/ngx_http_v3_uni.c @ 9054:6546c2ae1c7b quic
HTTP/3: unified hq code with regular HTTP/3 code.
The change removes hq-specific request handler. Now hq requests are handled
by the HTTP/3 request handler.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Wed, 19 Oct 2022 17:45:30 +0400 |
parents | 37d5dddabaea |
children | c851a2ed5ce8 |
comparison
equal
deleted
inserted
replaced
9053:740d7d6e8ff0 | 9054:6546c2ae1c7b |
---|---|
35 | 35 |
36 void | 36 void |
37 ngx_http_v3_init_uni_stream(ngx_connection_t *c) | 37 ngx_http_v3_init_uni_stream(ngx_connection_t *c) |
38 { | 38 { |
39 uint64_t n; | 39 uint64_t n; |
40 #if (NGX_HTTP_V3_HQ) | |
41 ngx_http_v3_session_t *h3c; | |
42 #endif | |
40 ngx_http_v3_uni_stream_t *us; | 43 ngx_http_v3_uni_stream_t *us; |
44 | |
45 #if (NGX_HTTP_V3_HQ) | |
46 h3c = ngx_http_v3_get_session(c); | |
47 if (h3c->hq) { | |
48 ngx_http_v3_finalize_connection(c, | |
49 NGX_HTTP_V3_ERR_STREAM_CREATION_ERROR, | |
50 "uni stream in hq mode"); | |
51 c->data = NULL; | |
52 ngx_http_v3_close_uni_stream(c); | |
53 return; | |
54 } | |
55 #endif | |
41 | 56 |
42 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "http3 init uni stream"); | 57 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "http3 init uni stream"); |
43 | 58 |
44 n = c->quic->id >> 2; | 59 n = c->quic->id >> 2; |
45 | 60 |