diff options
author | Vladimir Homutov <vl@nginx.com> | 2022-02-01 14:35:31 +0300 |
---|---|---|
committer | Vladimir Homutov <vl@nginx.com> | 2022-02-01 14:35:31 +0300 |
commit | 3f94e45a3b27a80d60be75bbcd7ef5b2c5e11a91 (patch) | |
tree | 90e94d601f4d9d8f470a8614a150aebde91a744f /src/event/quic/ngx_event_quic_output.c | |
parent | 1491d6ec42382148ab2d3de6cf08453ef4b5623f (diff) | |
download | nginx-3f94e45a3b27a80d60be75bbcd7ef5b2c5e11a91.tar.gz nginx-3f94e45a3b27a80d60be75bbcd7ef5b2c5e11a91.zip |
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.
Diffstat (limited to 'src/event/quic/ngx_event_quic_output.c')
-rw-r--r-- | src/event/quic/ngx_event_quic_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/quic/ngx_event_quic_output.c b/src/event/quic/ngx_event_quic_output.c index 67e527462..b34ca7855 100644 --- a/src/event/quic/ngx_event_quic_output.c +++ b/src/event/quic/ngx_event_quic_output.c @@ -979,7 +979,7 @@ ngx_quic_send_early_cc(ngx_connection_t *c, ngx_quic_header_t *inpkt, return NGX_ERROR; } - return NGX_OK; + return NGX_DONE; } |