summaryrefslogtreecommitdiffhomepage
path: root/src/event/quic/ngx_event_quic_ack.c
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2021-04-19 17:25:56 +0300
committerRoman Arutyunyan <arut@nginx.com>2021-04-19 17:25:56 +0300
commit013880bbdaa220aa245a327f16b5bf5a608bfd98 (patch)
tree0c9a1b16c7856d1f902bd7c15cf273f1aa0de1f4 /src/event/quic/ngx_event_quic_ack.c
parente9a0123e67dea3a2b15deb5fb3c47ac6931ddf37 (diff)
downloadnginx-013880bbdaa220aa245a327f16b5bf5a608bfd98.tar.gz
nginx-013880bbdaa220aa245a327f16b5bf5a608bfd98.tar.bz2
QUIC: renamed stream variables from sn to qs.
Currently both names are used which is confusing. Historically these were different objects, but now it's the same one. The name qs (quic stream) makes more sense than sn (stream node).
Diffstat (limited to 'src/event/quic/ngx_event_quic_ack.c')
-rw-r--r--src/event/quic/ngx_event_quic_ack.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/event/quic/ngx_event_quic_ack.c b/src/event/quic/ngx_event_quic_ack.c
index 4ae7e6ef5..fe9aee68d 100644
--- a/src/event/quic/ngx_event_quic_ack.c
+++ b/src/event/quic/ngx_event_quic_ack.c
@@ -436,7 +436,7 @@ ngx_quic_resend_frames(ngx_connection_t *c, ngx_quic_send_ctx_t *ctx)
ngx_buf_t *b;
ngx_queue_t *q;
ngx_quic_frame_t *f, *start;
- ngx_quic_stream_t *sn;
+ ngx_quic_stream_t *qs;
ngx_quic_connection_t *qc;
qc = ngx_quic_get_connection(c);
@@ -490,15 +490,15 @@ ngx_quic_resend_frames(ngx_connection_t *c, ngx_quic_send_ctx_t *ctx)
break;
case NGX_QUIC_FT_MAX_STREAM_DATA:
- sn = ngx_quic_find_stream(&qc->streams.tree,
+ qs = ngx_quic_find_stream(&qc->streams.tree,
f->u.max_stream_data.id);
- if (sn == NULL) {
+ if (qs == NULL) {
ngx_quic_free_frame(c, f);
break;
}
- b = sn->b;
- n = sn->fs->received + (b->pos - b->start) + (b->end - b->last);
+ b = qs->b;
+ n = qs->fs->received + (b->pos - b->start) + (b->end - b->last);
if (f->u.max_stream_data.limit < n) {
f->u.max_stream_data.limit = n;
@@ -515,9 +515,9 @@ ngx_quic_resend_frames(ngx_connection_t *c, ngx_quic_send_ctx_t *ctx)
case NGX_QUIC_FT_STREAM5:
case NGX_QUIC_FT_STREAM6:
case NGX_QUIC_FT_STREAM7:
- sn = ngx_quic_find_stream(&qc->streams.tree, f->u.stream.stream_id);
+ qs = ngx_quic_find_stream(&qc->streams.tree, f->u.stream.stream_id);
- if (sn && sn->connection->write->error) {
+ if (qs && qs->connection->write->error) {
/* RESET_STREAM was sent */
ngx_quic_free_frame(c, f);
break;