Mercurial > hg > nginx
comparison src/event/quic/ngx_event_quic_output.c @ 8994:e00295b76395 quic
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.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Tue, 01 Feb 2022 14:35:31 +0300 |
parents | da24a78720eb |
children | cd8018bc81a5 |
comparison
equal
deleted
inserted
replaced
8993:7626aa7a2156 | 8994:e00295b76395 |
---|---|
977 | 977 |
978 if (ngx_quic_send(c, res.data, res.len, c->sockaddr, c->socklen) < 0) { | 978 if (ngx_quic_send(c, res.data, res.len, c->sockaddr, c->socklen) < 0) { |
979 return NGX_ERROR; | 979 return NGX_ERROR; |
980 } | 980 } |
981 | 981 |
982 return NGX_OK; | 982 return NGX_DONE; |
983 } | 983 } |
984 | 984 |
985 | 985 |
986 ngx_int_t | 986 ngx_int_t |
987 ngx_quic_send_retry(ngx_connection_t *c, ngx_quic_conf_t *conf, | 987 ngx_quic_send_retry(ngx_connection_t *c, ngx_quic_conf_t *conf, |