From ace2bda104d19b38af01811c8b9aa427af318c75 Mon Sep 17 00:00:00 2001 From: dgaudet Date: Fri, 21 Apr 2000 03:54:38 +0000 Subject: [PATCH] fix buglet in example git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85007 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/misc/perf-tuning.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/manual/misc/perf-tuning.html b/docs/manual/misc/perf-tuning.html index 58ca489f61e..b32ad7c92f2 100644 --- a/docs/manual/misc/perf-tuning.html +++ b/docs/manual/misc/perf-tuning.html @@ -475,7 +475,9 @@ function looks roughly like this: select (s for reading, 2 second timeout); if (error) break; if (s is ready for reading) { - read (s, junk_buffer, sizeof (junk_buffer)); + if (read (s, junk_buffer, sizeof (junk_buffer)) <= 0) { + break; + } /* just toss away whatever is here */ } } -- 2.47.3