Mercurial > hg > nginx
comparison src/event/quic/ngx_event_quic.c @ 8778:5186ee5a94b9 quic
QUIC: simplified sending 1-RTT only frames.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 05 May 2021 19:32:49 +0300 |
parents | 901126931bd5 |
children | b3f6ad181df4 |
comparison
equal
deleted
inserted
replaced
8777:d5f93733c17d | 8778:5186ee5a94b9 |
---|---|
1263 | 1263 |
1264 break; | 1264 break; |
1265 | 1265 |
1266 case NGX_QUIC_FT_PATH_CHALLENGE: | 1266 case NGX_QUIC_FT_PATH_CHALLENGE: |
1267 | 1267 |
1268 if (ngx_quic_handle_path_challenge_frame(c, pkt, | 1268 if (ngx_quic_handle_path_challenge_frame(c, &frame.u.path_challenge) |
1269 &frame.u.path_challenge) | |
1270 != NGX_OK) | 1269 != NGX_OK) |
1271 { | 1270 { |
1272 return NGX_ERROR; | 1271 return NGX_ERROR; |
1273 } | 1272 } |
1274 | 1273 |
1275 break; | 1274 break; |
1276 | 1275 |
1277 case NGX_QUIC_FT_PATH_RESPONSE: | 1276 case NGX_QUIC_FT_PATH_RESPONSE: |
1278 | 1277 |
1279 if (ngx_quic_handle_path_response_frame(c, pkt, | 1278 if (ngx_quic_handle_path_response_frame(c, &frame.u.path_response) |
1280 &frame.u.path_response) | |
1281 != NGX_OK) | 1279 != NGX_OK) |
1282 { | 1280 { |
1283 return NGX_ERROR; | 1281 return NGX_ERROR; |
1284 } | 1282 } |
1285 | 1283 |
1286 break; | 1284 break; |
1287 | 1285 |
1288 case NGX_QUIC_FT_NEW_CONNECTION_ID: | 1286 case NGX_QUIC_FT_NEW_CONNECTION_ID: |
1289 | 1287 |
1290 if (ngx_quic_handle_new_connection_id_frame(c, pkt, &frame.u.ncid) | 1288 if (ngx_quic_handle_new_connection_id_frame(c, &frame.u.ncid) |
1291 != NGX_OK) | 1289 != NGX_OK) |
1292 { | 1290 { |
1293 return NGX_ERROR; | 1291 return NGX_ERROR; |
1294 } | 1292 } |
1295 | 1293 |
1296 break; | 1294 break; |
1297 | 1295 |
1298 case NGX_QUIC_FT_RETIRE_CONNECTION_ID: | 1296 case NGX_QUIC_FT_RETIRE_CONNECTION_ID: |
1299 | 1297 |
1300 if (ngx_quic_handle_retire_connection_id_frame(c, pkt, | 1298 if (ngx_quic_handle_retire_connection_id_frame(c, |
1301 &frame.u.retire_cid) | 1299 &frame.u.retire_cid) |
1302 != NGX_OK) | 1300 != NGX_OK) |
1303 { | 1301 { |
1304 return NGX_ERROR; | 1302 return NGX_ERROR; |
1305 } | 1303 } |