]> git.kaiwu.me - nginx.git/commit
QUIC: revised ngx_quic_handle_datagram() error codes.
authorVladimir Homutov <vl@nginx.com>
Tue, 1 Feb 2022 11:35:31 +0000 (14:35 +0300)
committerVladimir Homutov <vl@nginx.com>
Tue, 1 Feb 2022 11:35:31 +0000 (14:35 +0300)
commit3f94e45a3b27a80d60be75bbcd7ef5b2c5e11a91
tree90e94d601f4d9d8f470a8614a150aebde91a744f
parent1491d6ec42382148ab2d3de6cf08453ef4b5623f
QUIC: revised ngx_quic_handle_datagram() error codes.

The NGX_DECLINED is replaced with NGX_DONE to match closer to return code
of ngx_quic_handle_packet() and ngx_quic_close_connection() rc argument.

The ngx_quic_close_connection() rc code is used only when quic connection
exists, thus anything goes if qc == NULL.

The ngx_quic_handle_datagram() does not return NG_OK in cases when quic
connection is not yet created.
src/event/quic/ngx_event_quic.c
src/event/quic/ngx_event_quic_output.c