Mercurial > hg > nginx-quic
view src/http/modules/ngx_http_quic_module.h @ 8685:e2ec952dc295 quic
QUIC: fixed removal of unused client IDs.
If client ID was never used, its refcount is zero. To keep things simple,
the ngx_quic_unref_client_id() function is now aware of such IDs.
If client ID was used, the ngx_quic_replace_retired_client_id() function
is supposed to find all users and unref the ID, thus ngx_quic_unref_client_id()
should not be called after it.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Wed, 13 Oct 2021 14:48:33 +0300 |
parents | 9ec3e71f8a61 |
children | 606bf52888d2 |
line wrap: on
line source
/* * Copyright (C) Nginx, Inc. * Copyright (C) Roman Arutyunyan */ #ifndef _NGX_HTTP_QUIC_H_INCLUDED_ #define _NGX_HTTP_QUIC_H_INCLUDED_ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> #define NGX_HTTP_QUIC_ALPN_ADVERTISE "\x0Ahq-interop" #define NGX_HTTP_QUIC_ALPN_DRAFT_FMT "\x05hq-%02uD" #define ngx_http_quic_get_connection(c) \ ((ngx_http_connection_t *) (c)->quic->parent->data) ngx_int_t ngx_http_quic_init(ngx_connection_t *c); #endif /* _NGX_HTTP_QUIC_H_INCLUDED_ */