;;; -*- 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)
(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))))))
;;;; 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)
(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*)
(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*)