diff options
-rw-r--r-- | networking/httpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index d06bc2776..aa8ce8dcb 100644 --- a/networking/httpd.c +++ b/networking/httpd.c @@ -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; |