summaryrefslogtreecommitdiffhomepage
path: root/src/event/quic/ngx_event_quic_migration.c
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2021-05-05 19:32:49 +0300
committerSergey Kandaurov <pluknet@nginx.com>2021-05-05 19:32:49 +0300
commit8f0d5edf63b385c013571439c4af3b2f0fe2c856 (patch)
tree386b30b57cdcf130515220f7891a1a10a4ac241f /src/event/quic/ngx_event_quic_migration.c
parentc8b273fd997dd021d049105ed10f6bf054f239ba (diff)
downloadnginx-8f0d5edf63b385c013571439c4af3b2f0fe2c856.tar.gz
nginx-8f0d5edf63b385c013571439c4af3b2f0fe2c856.tar.bz2
QUIC: simplified sending 1-RTT only frames.
Diffstat (limited to 'src/event/quic/ngx_event_quic_migration.c')
-rw-r--r--src/event/quic/ngx_event_quic_migration.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/event/quic/ngx_event_quic_migration.c b/src/event/quic/ngx_event_quic_migration.c
index 74dc0113b..d6300012d 100644
--- a/src/event/quic/ngx_event_quic_migration.c
+++ b/src/event/quic/ngx_event_quic_migration.c
@@ -22,7 +22,7 @@ static ngx_quic_path_t *ngx_quic_alloc_path(ngx_connection_t *c);
ngx_int_t
ngx_quic_handle_path_challenge_frame(ngx_connection_t *c,
- ngx_quic_header_t *pkt, ngx_quic_path_challenge_frame_t *f)
+ ngx_quic_path_challenge_frame_t *f)
{
off_t max, pad;
ssize_t sent;
@@ -33,7 +33,7 @@ ngx_quic_handle_path_challenge_frame(ngx_connection_t *c,
qc = ngx_quic_get_connection(c);
- frame.level = pkt->level;
+ frame.level = ssl_encryption_application;
frame.type = NGX_QUIC_FT_PATH_RESPONSE;
frame.u.path_response = *f;
@@ -70,7 +70,7 @@ ngx_quic_handle_path_challenge_frame(ngx_connection_t *c,
return NGX_ERROR;
}
- fp->level = pkt->level;
+ fp->level = ssl_encryption_application;
fp->type = NGX_QUIC_FT_PING;
ngx_quic_queue_frame(qc, fp);
@@ -82,7 +82,7 @@ ngx_quic_handle_path_challenge_frame(ngx_connection_t *c,
ngx_int_t
ngx_quic_handle_path_response_frame(ngx_connection_t *c,
- ngx_quic_header_t *pkt, ngx_quic_path_challenge_frame_t *f)
+ ngx_quic_path_challenge_frame_t *f)
{
ngx_queue_t *q;
ngx_quic_path_t *path, *prev;
@@ -557,7 +557,6 @@ ngx_quic_validate_path(ngx_connection_t *c, ngx_quic_socket_t *qsock)
ngx_add_timer(&qc->path_validation, pto);
}
-
return NGX_OK;
}