comparison src/event/ngx_event_quic.c @ 7908:f27fdf86275d quic

Fixed return codes in ngx_quic_add_handshake_data() callback.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 29 May 2020 12:50:20 +0300
parents d3aa54242c37
children 125cbfa77013
comparison
equal deleted inserted replaced
7907:4ea302a47d28 7908:f27fdf86275d
404 != NGX_OK) 404 != NGX_OK)
405 { 405 {
406 qc->error = NGX_QUIC_ERR_TRANSPORT_PARAMETER_ERROR; 406 qc->error = NGX_QUIC_ERR_TRANSPORT_PARAMETER_ERROR;
407 qc->error_reason = "failed to process transport parameters"; 407 qc->error_reason = "failed to process transport parameters";
408 408
409 return NGX_ERROR; 409 return 0;
410 } 410 }
411 411
412 if (qc->ctp.max_idle_timeout > 0 412 if (qc->ctp.max_idle_timeout > 0
413 && qc->ctp.max_idle_timeout < qc->tp.max_idle_timeout) 413 && qc->ctp.max_idle_timeout < qc->tp.max_idle_timeout)
414 { 414 {
421 qc->error = NGX_QUIC_ERR_TRANSPORT_PARAMETER_ERROR; 421 qc->error = NGX_QUIC_ERR_TRANSPORT_PARAMETER_ERROR;
422 qc->error_reason = "invalid maximum packet size"; 422 qc->error_reason = "invalid maximum packet size";
423 423
424 ngx_log_error(NGX_LOG_INFO, c->log, 0, 424 ngx_log_error(NGX_LOG_INFO, c->log, 0,
425 "quic maximum packet size is invalid"); 425 "quic maximum packet size is invalid");
426 return NGX_ERROR; 426 return 0;
427 } 427 }
428 428
429 qc->client_tp_done = 1; 429 qc->client_tp_done = 1;
430 } 430 }
431 } 431 }