← Commit list

af6012a1a

Denys Vlasenko
Denys Vlasenko
2019-04-19
SUCCESS Duration: 150s

Subject

httpd: do not set alarm() timeout if we read cached header

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/httpd.c+1 -1
@@ -1253,10 +1253,10 @@ static unsigned get_line(void)
unsigned count;
char c;
- alarm(HEADER_READ_TIMEOUT);
count = 0;
while (1) {
if (hdr_cnt <= 0) {
+ alarm(HEADER_READ_TIMEOUT);
hdr_cnt = safe_read(STDIN_FILENO, hdr_buf, sizeof_hdr_buf);
if (hdr_cnt <= 0)
goto ret;