From: dgaudet Date: Fri, 21 Apr 2000 03:54:38 +0000 (+0000) Subject: fix buglet in example X-Git-Tag: apache-doc-split-01~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ace2bda104d19b38af01811c8b9aa427af318c75;p=thirdparty%2Fapache%2Fhttpd.git fix buglet in example git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85007 13f79535-47bb-0310-9956-ffa450edef68 --- 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 */ } }