diff options
| author | Vladimir Homutov <vl@nginx.com> | 2021-05-05 18:11:55 +0300 |
|---|---|---|
| committer | Vladimir Homutov <vl@nginx.com> | 2021-05-05 18:11:55 +0300 |
| commit | c8b273fd997dd021d049105ed10f6bf054f239ba (patch) | |
| tree | 1410ad3c0b18c086818a214292f5596757b69c97 /src/event/quic/ngx_event_quic_connid.h | |
| parent | 59fe6ca97ae66972744cb68a3f29ac7f8d0a3002 (diff) | |
| download | nginx-c8b273fd997dd021d049105ed10f6bf054f239ba.tar.gz nginx-c8b273fd997dd021d049105ed10f6bf054f239ba.tar.bz2 | |
QUIC: relaxed client id requirements.
Client IDs cannot be reused on different paths. This change allows to reuse
client id previosly seen on the same path (but with different dcid) in case
when no unused client IDs are available.
Diffstat (limited to 'src/event/quic/ngx_event_quic_connid.h')
| -rw-r--r-- | src/event/quic/ngx_event_quic_connid.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event/quic/ngx_event_quic_connid.h b/src/event/quic/ngx_event_quic_connid.h index fc7850a9c..a0552e9dd 100644 --- a/src/event/quic/ngx_event_quic_connid.h +++ b/src/event/quic/ngx_event_quic_connid.h @@ -23,6 +23,8 @@ ngx_int_t ngx_quic_create_server_id(ngx_connection_t *c, u_char *id); ngx_quic_client_id_t *ngx_quic_create_client_id(ngx_connection_t *c, ngx_str_t *id, uint64_t seqnum, u_char *token); ngx_quic_client_id_t *ngx_quic_next_client_id(ngx_connection_t *c); +ngx_quic_client_id_t *ngx_quic_used_client_id(ngx_connection_t *c, + ngx_quic_path_t *path); void ngx_quic_unref_client_id(ngx_connection_t *c, ngx_quic_client_id_t *cid); #endif /* _NGX_EVENT_QUIC_CONNID_H_INCLUDED_ */ |
