chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Spiffy is crashing


From: Petter Egesund
Subject: Re: [Chicken-users] Spiffy is crashing
Date: Wed, 15 Apr 2009 12:34:03 +0200

Hi, thanks for answering.

 

It can be reproduces by these two files below. Trying to open test.ssp (any ssp-file seems to have this problem), crashes the server. I have tried to save files in both ascii and utf8 to see if this was the problem.

 

Petter

 

-- test.ssp ---

 

<!-- test.ssp -->

<html>

<head>

<?scheme

(no-cache)

(display (ajax))

(define words '(one two three))

?>

</head>

<body>

<p>

The current time is: <span id="time"><b>...</b></span> </p> <?

(remote-timer

2

(lambda () (printf "<b>~a</b> " (seconds->string (current-seconds))))

update: "time")

?>

</body>

</html>

 

 

-----------

 

server.scm

 

(use utf8)

(use spiffy)

(use ssp-handler)

(use web-scheme-handler)

(use ajax)

(use sqlite3)

(use spiffy-utils)

 (spiffy-vhost-map `((".*" .

                        ,(lambda (continue)

   (parameterize ((spiffy-file-ext-handlers `(("ssp" . ,ssp-handler) ("ws" . ,web-scheme-handler)))

                                          (spiffy-root-path

"/home/pe/ordnett_micro_old"))

     (continue))))))

 

(start-server port: 8080 root: "." debug: #t)

 

 

 

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]