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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user