Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/httpd remove some XXX comments. one isn't relevant,...



details:   https://anonhg.NetBSD.org/src/rev/e9a5d3e05be6
branches:  trunk
changeset: 1005379:e9a5d3e05be6
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Dec 06 05:53:20 2019 +0000

description:
remove some XXX comments.  one isn't relevant, and the other two
have been incorrect for a long while now.

diffstat:

 libexec/httpd/cgi-bozo.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (38 lines):

diff -r c3978573822b -r e9a5d3e05be6 libexec/httpd/cgi-bozo.c
--- a/libexec/httpd/cgi-bozo.c  Fri Dec 06 04:15:38 2019 +0000
+++ b/libexec/httpd/cgi-bozo.c  Fri Dec 06 05:53:20 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cgi-bozo.c,v 1.48 2019/03/29 14:46:44 martin Exp $     */
+/*     $NetBSD: cgi-bozo.c,v 1.49 2019/12/06 05:53:20 mrg Exp $        */
 
 /*     $eterna: cgi-bozo.c,v 1.40 2011/11/18 09:21:15 mrg Exp $        */
 
@@ -137,7 +137,7 @@
                 * return it in the response.  If the cgi program does
                 * not return any `Status:' header then the server should
                 * respond with 200 OK.
-                * XXX The CGI 1.1 and 1.2 specification differ slightly on
+                * The CGI 1.1 and 1.2 specification differ slightly on
                 * this in that v1.2 says that the script MUST NOT return a
                 * `Status:' header if it is returning a `Location:' header.
                 * For compatibility we are going with the CGI 1.1 behavior.
@@ -182,8 +182,7 @@
                bozo_flush(httpd, stdout);
        }
 
-       /* XXX we should have some goo that times us out
-        */
+       /* CGI programs should perform their own timeouts */
        while ((rbytes = read(in, buf, sizeof buf)) > 0) {
                ssize_t wbytes;
                char *bp = buf;
@@ -645,8 +644,7 @@
        }
        close(STDOUT_FILENO);
 
-       /* XXX we should have some goo that times us out
-        */
+       /* CGI programs should perform their own timeouts */
        while ((rbytes = bozo_read(httpd, STDIN_FILENO, buf, sizeof buf)) > 0) {
                ssize_t wbytes;
                char *bp = buf;



Home | Main Index | Thread Index | Old Index