fix: Improve type safety by adding const qualifiers to function parameters in logging and enhance read loop handling in HTTP2

This commit is contained in:
2025-12-20 22:11:01 +01:00
parent fcac920bc9
commit f433ae55e4
3 changed files with 9 additions and 9 deletions

View File

@@ -46,7 +46,7 @@ static ssize_t file_read_callback(nghttp2_session* session, int32_t stream_id,
int fd = source->fd;
ssize_t nread;
while ((nread = read(fd, buf, length)) == -1 && errno == EINTR);
while ((nread = read(fd, buf, length)) == -1 && errno == EINTR) {}
if (nread == -1)
{