From 2034f84891876fe05ed5dbc7861ff21e70bdd2e3 Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Tue, 8 Jul 2003 08:34:23 +0000 Subject: [PATCH] r5252: *** empty log message *** --- compat.lisp | 4 ++-- utils.lisp | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/compat.lisp b/compat.lisp index 1b6c62f..e715121 100644 --- a/compat.lisp +++ b/compat.lisp @@ -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)))))) diff --git a/utils.lisp b/utils.lisp index c216022..9964122 100644 --- a/utils.lisp +++ b/utils.lisp @@ -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*) -- 2.34.1