From 0c5bb8a5e10657cec505729596c8b2f0c794cc8f Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Thu, 26 Jun 2025 22:20:46 +0100 Subject: Remove short read checks This removes a bunch of checks for cases where we _read_ less bytes than asked for. There are several reasons why we may _read_ less bytes including reading data from a network file system. This has proven to be an issue. Closes: https://github.com/nginx/nginx/issues/265 Signed-off-by: Andrew Clayton --- src/http/v3/ngx_http_v3_module.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/http/v3/ngx_http_v3_module.c') diff --git a/src/http/v3/ngx_http_v3_module.c b/src/http/v3/ngx_http_v3_module.c index 139bd65f3..5bd5cfff6 100644 --- a/src/http/v3/ngx_http_v3_module.c +++ b/src/http/v3/ngx_http_v3_module.c @@ -361,13 +361,6 @@ ngx_http_quic_host_key(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) goto failed; } - if ((size_t) n != size) { - ngx_conf_log_error(NGX_LOG_CRIT, cf, 0, - ngx_read_file_n " \"%V\" returned only " - "%z bytes instead of %uz", &file.name, n, size); - goto failed; - } - qcf->host_key.data = buf; qcf->host_key.len = n; -- cgit