comparison src/event/quic/ngx_event_quic_output.c @ 9146:f3412ec3b6d1

QUIC: allowed ngx_quic_frame_sendto() to return NGX_AGAIN. Previously, NGX_AGAIN returned by ngx_quic_send() was treated by ngx_quic_frame_sendto() as error, which triggered errors in its callers. However, a blocked socket is not an error. Now NGX_AGAIN is passed as is to the ngx_quic_frame_sendto() callers, which can safely ignore it.
author Roman Arutyunyan <arut@nginx.com>
date Tue, 08 Aug 2023 10:43:17 +0400
parents 93aee926d27f
children 58afcd72446f
comparison
equal deleted inserted replaced
9145:93aee926d27f 9146:f3412ec3b6d1
1231 1231
1232 ctx->pnum++; 1232 ctx->pnum++;
1233 1233
1234 sent = ngx_quic_send(c, res.data, res.len, path->sockaddr, path->socklen); 1234 sent = ngx_quic_send(c, res.data, res.len, path->sockaddr, path->socklen);
1235 if (sent < 0) { 1235 if (sent < 0) {
1236 return NGX_ERROR; 1236 return sent;
1237 } 1237 }
1238 1238
1239 path->sent += sent; 1239 path->sent += sent;
1240 1240
1241 return NGX_OK; 1241 return NGX_OK;