r5252: *** empty log message ***
authorKevin M. Rosenberg <kevin@rosenberg.net>
Tue, 8 Jul 2003 08:34:23 +0000 (08:34 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Tue, 8 Jul 2003 08:34:23 +0000 (08:34 +0000)
compat.lisp
utils.lisp

index 1b6c62fe7fbdc90fe0e3a0b06865dc453c1939a4..e7151214c9f3e3b9fca1aac27a5359d61cd9b7d6 100644 (file)
@@ -1,5 +1,5 @@
 ;;; -*- Syntax: Ansi-Common-Lisp; Base: 10; Mode: lisp; Package: clit -*-
-;;; $Id: compat.lisp,v 1.1 2003/07/08 06:43:29 kevin Exp $
+;;; $Id: compat.lisp,v 1.2 2003/07/08 08:34:22 kevin Exp $
 
 (in-package #:modlisp)
 
@@ -253,7 +253,7 @@ setsockopt SO_REUSEADDR if :reuse is not nil"
       (let ((ll (string-tokens (substitute #\Space #\. dotted))))
        (+ (ash (first ll) 24) (ash (second ll) 16)
           (ash (third ll) 8) (fourth ll)))
-    (ignore-error
+    (ignore-errors
        (let ((ll (string-tokens (substitute #\Space #\. dotted))))
          (+ (ash (first ll) 24) (ash (second ll) 16)
             (ash (third ll) 8) (fourth ll))))))
index c216022a4e447ff7cf6a9cffe02e67b548cd2ce6..9964122fd2323b4bca740a717b98955b98103eb5 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Dec 2002
 ;;;;
-;;;; $Id: utils.lisp,v 1.3 2003/07/08 06:40:00 kevin Exp $
+;;;; $Id: utils.lisp,v 1.4 2003/07/08 08:34:23 kevin Exp $
 ;;;; *************************************************************************
 
 (in-package #:modlisp)
@@ -44,6 +44,8 @@
         (write-header-line "Content-Length" 
                            (write-to-string (length ,outstr)))
         (write-header-line "Keep-Socket" "1")
+        (write-header-line "Keep-Alive" "timeout=15, max=99")
+        (write-header-line "Connection" "Keep-Alive")
         (write-string "end" *apache-socket*)
         (write-char #\NewLine *apache-socket*)
         (write-string ,outstr *apache-socket*)
@@ -65,6 +67,8 @@
   (write-header-line "Content-Type" (format-string format))
   (write-header-line "Content-Length" (format nil "~d" (length html)))
   (write-header-line "Keep-Socket" "1")
+  (write-header-line "Keep-Alive" "timeout=15, max=99")
+  (write-header-line "Connection" "Keep-Alive")
   (write-string "end" *apache-socket*)
   (write-char #\NewLine *apache-socket*)
   (write-string html *apache-socket*)