Module Name:    src
Committed By:   sevan
Date:           Sun May  6 14:41:01 UTC 2018

Modified Files:
        src/share/man/man3lua: bozohttpd.3lua

Log Message:
drop redundant repeat-until loop for now. read_request & process_function
functions need further investigation as to why this is not required. In the C
daemon, at the end of main.c this is the exact behaviour that's used.

heads up <wiz> regarding infinite loop.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/share/man/man3lua/bozohttpd.3lua

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3lua/bozohttpd.3lua
diff -u src/share/man/man3lua/bozohttpd.3lua:1.2 src/share/man/man3lua/bozohttpd.3lua:1.3
--- src/share/man/man3lua/bozohttpd.3lua:1.2	Sat May  5 16:24:26 2018
+++ src/share/man/man3lua/bozohttpd.3lua	Sun May  6 14:41:01 2018
@@ -1,4 +1,4 @@
-.\"     $NetBSD: bozohttpd.3lua,v 1.2 2018/05/05 16:24:26 wiz Exp $
+.\"     $NetBSD: bozohttpd.3lua,v 1.3 2018/05/06 14:41:01 sevan Exp $
 .\"
 .\" Copyright (c) 2018 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd May 5, 2018
+.Dd May 6, 2018
 .Dt BOZOHTTPD 3lua
 .Os
 .Sh NAME
@@ -74,12 +74,9 @@ prefs = bozo.init_prefs()
 bozo.set_pref(myhttpd, prefs, "port number", "8080")
 bozo.set_pref(myhttpd, prefs, "background", 1)
 bozo.setup(myhttpd, prefs, "www.example.com", "/var/www")
-local numreps = 0
-repeat
-        req = bozo.read_request(myhttpd)
-        bozo.process_request(req)
-        bozo.clean_request(req)
-until numreps == 0
+req = bozo.read_request(myhttpd)
+bozo.process_request(req)
+bozo.clean_request(req)
 .Ed
 .Sh SEE ALSO
 .Xr lua 1 ,

Reply via email to