From riedelmo at mathematik.uni-stuttgart.de Thu Oct 1 11:22:35 2009 From: riedelmo at mathematik.uni-stuttgart.de (Marko Riedel) Date: Thu, 1 Oct 2009 13:22:35 +0200 Subject: [mod-lisp-devel] mod-lisp and cl-who, beginner's question Message-ID: <19140.37115.279851.570601@one.mathematik.uni-stuttgart.de> Dear friends, I am a beginner when it comes to Lisp although I have some experience with Scheme. I would eventually like to use cl-who to serve web pages on a Debian system. Here is the signature of my web server: Apache/2.2.9 (Debian) mod_lisp2/1.3.1 PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g Server at lisptest Port 80 I tried the following simple program: (format *modlisp-socket* "~a~%" "HTTP/1.1 200 OK") (format *modlisp-socket* "~a~%~%" "Content-Type: text/html") (format *modlisp-socket* "~a~%" "Hello, world.") My problem is, this program produces a timeout and the webserver gives up after a certain time. This is what the web server writes to the log file: [Wed Sep 30 23:30:00 2009] [error] \ (70007)The timeout specified has expired: error reading from Lisp Nonetheless the webserver and the Lisp process are talking to each other, as shown by the following TCP dump: 23:29:00.163187 IP localhost.localdomain.49120 > localhost.localdomain.20123: P 97:758(661) ack 1 win 513 0x0000: 4500 02c9 d6d5 4000 4006 6357 7f00 0001 E..... at .@.cW.... 0x0010: 7f00 0001 bfe0 4e9b ce5d 00ea ce43 bee2 ......N..]...C.. 0x0020: 8018 0201 00be 0000 0101 080a 1517 d64c ...............L 0x0030: 1517 d64c 0a38 300a 7265 6d6f 7465 2d69 ...L.80.remote-i 0x0040: 702d 6164 6472 0a31 3239 2e36 392e 3131 p-addr.129.69.11 0x0050: 362e 310a 7363 7269 7074 2d66 696c 656e 6.1.script-filen 0x0060: 616d 650a 2f61 6673 2f2e 6d61 7468 656d ame./afs/.mathem 0x0070: 6174 696b 2e75 6e69 2d73 7475 7474 6761 atik.uni-stuttga 0x0080: 7274 2e64 652f 7072 6f6a 6563 742f 6c69 rt.de/project/li 0x0090: 7370 2f73 696d 706c 652e 6c69 7370 0a72 sp/simple.lisp.r 0x00a0: 656d 6f74 652d 6970 2d70 6f72 740a 3432 emote-ip-port.42 0x00b0: 3934 320a 7365 7276 6572 2d69 640a 6c6f 942.server-id.lo 0x00c0: 6361 6c68 6f73 740a 7365 7276 6572 2d62 calhost.server-b 0x00d0: 6173 6576 6572 7369 6f6e 0a41 7061 6368 aseversion.Apach 0x00e0: 652f 322e 322e 380a 6d6f 646c 6973 702d e/2.2.8.modlisp- 0x00f0: 7665 7273 696f 6e0a 312e 332e 310a 6d6f version.1.3.1.mo 0x0100: 646c 6973 702d 6d61 6a6f 722d 7665 7273 dlisp-major-vers 0x0110: 696f 6e0a 320a 486f 7374 0a6c 6973 7074 ion.2.Host.lispt 0x0120: 6573 740a 5573 6572 2d41 6765 6e74 0a4d est.User-Agent.M 0x0130: 6f7a 696c 6c61 2f35 2e30 2028 5831 313b ozilla/5.0.(X11; 0x0140: 2055 3b20 4c69 6e75 7820 6936 3836 3b20 .U;.Linux.i686;. 0x0150: 656e 2d55 533b 2072 763a 312e 382e 302e en-US;.rv:1.8.0. 0x0160: 3133 7072 6529 2047 6563 6b6f 2f32 3030 13pre).Gecko/200 0x0170: 3730 3530 3520 4963 6561 7065 2f31 2e30 70505.Iceape/1.0 0x0180: 2e39 2028 4465 6269 616e 2d31 2e30 2e31 .9.(Debian-1.0.1 0x0190: 317e 7072 6530 3731 3032 322d 3065 7463 1~pre071022-0etc 0x01a0: 6831 290a 4163 6365 7074 0a74 6578 742f h1).Accept.text/ 0x01b0: 786d 6c2c 6170 706c 6963 6174 696f 6e2f xml,application/ 0x01c0: 786d 6c2c 6170 706c 6963 6174 696f 6e2f xml,application/ 0x01d0: 7868 746d 6c2b 786d 6c2c 7465 7874 2f68 xhtml+xml,text/h 0x01e0: 746d 6c3b 713d 302e 392c 7465 7874 2f70 tml;q=0.9,text/p 0x01f0: 6c61 696e 3b71 3d30 2e38 2c69 6d61 6765 lain;q=0.8,image 0x0200: 2f70 6e67 2c2a 2f2a 3b71 3d30 2e35 0a41 /png,*/*;q=0.5.A 0x0210: 6363 6570 742d 4c61 6e67 7561 6765 0a65 ccept-Language.e 0x0220: 6e2d 7573 2c65 6e3b 713d 302e 350a 4163 n-us,en;q=0.5.Ac 0x0230: 6365 7074 2d45 6e63 6f64 696e 670a 677a cept-Encoding.gz 0x0240: 6970 2c64 6566 6c61 7465 0a41 6363 6570 ip,deflate.Accep 0x0250: 742d 4368 6172 7365 740a 4953 4f2d 3838 t-Charset.ISO-88 0x0260: 3539 2d31 2c75 7466 2d38 3b71 3d30 2e37 59-1,utf-8;q=0.7 0x0270: 2c2a 3b71 3d30 2e37 0a4b 6565 702d 416c ,*;q=0.7.Keep-Al 0x0280: 6976 650a 3330 300a 436f 6e6e 6563 7469 ive.300.Connecti 0x0290: 6f6e 0a6b 6565 702d 616c 6976 650a 5072 on.keep-alive.Pr 0x02a0: 6167 6d61 0a6e 6f2d 6361 6368 650a 4361 agma.no-cache.Ca 0x02b0: 6368 652d 436f 6e74 726f 6c0a 6e6f 2d63 che-Control.no-c 0x02c0: 6163 6865 0a65 6e64 0a ache.end. The relevant configuration data from the virtual host container are as follows: LispServer 127.0.0.1 20123 "localhost" AddHandler lisp-handler .lsp .lisp AllowOverride All Order deny,allow Deny from all Allow from all My question to the list is, what is causing this timeout? Is the socket not being flushed? Why are there no data being sent from the Lisp process after it receives the headers from the web server? Thanks for any comments you may have. Best regards, Marko Riedel From andreas at atp-media.de Thu Oct 1 11:47:05 2009 From: andreas at atp-media.de (Andreas Thiele) Date: Thu, 1 Oct 2009 13:47:05 +0200 Subject: [mod-lisp-devel] mod-lisp and cl-who, beginner's question In-Reply-To: <19140.37115.279851.570601@one.mathematik.uni-stuttgart.de> References: <19140.37115.279851.570601@one.mathematik.uni-stuttgart.de> Message-ID: <002201ca428c$e6f41150$b4dc33f0$@de> Hi Marko, > My question to the list is, what is causing this timeout? Is the > socket not being flushed? Why are there no data being sent from the > Lisp process after it receives the headers from the web server? Some time has passed since I used mod_lisp. Just a short guess: Indeed it might be the data is not flushed. I'd try (force-output *modlisp-socket*) Andreas From marc.battyani at fractalconcept.com Thu Oct 1 12:07:54 2009 From: marc.battyani at fractalconcept.com (Marc Battyani) Date: Thu, 01 Oct 2009 08:07:54 -0400 Subject: [mod-lisp-devel] mod-lisp and cl-who, beginner's question In-Reply-To: <002201ca428c$e6f41150$b4dc33f0$@de> References: <19140.37115.279851.570601@one.mathematik.uni-stuttgart.de> <002201ca428c$e6f41150$b4dc33f0$@de> Message-ID: <4AC49B9A.8030800@fractalconcept.com> An HTML attachment was scrubbed... URL: From riedelmo at mathematik.uni-stuttgart.de Thu Oct 1 19:52:34 2009 From: riedelmo at mathematik.uni-stuttgart.de (Marko Riedel) Date: Thu, 1 Oct 2009 21:52:34 +0200 Subject: [mod-lisp-devel] mod-lisp and cl-who, beginner's question In-Reply-To: <002201ca428c$e6f41150$b4dc33f0$@de> References: <19140.37115.279851.570601@one.mathematik.uni-stuttgart.de> <002201ca428c$e6f41150$b4dc33f0$@de> Message-ID: <19141.2178.751478.798189@one.mathematik.uni-stuttgart.de> Andreas Thiele writes: > Hi Marko, > > > My question to the list is, what is causing this timeout? Is the > > socket not being flushed? Why are there no data being sent from the > > Lisp process after it receives the headers from the web server? > > Some time has passed since I used mod_lisp. Just a short guess: > > Indeed it might be the data is not flushed. I'd try > > (force-output *modlisp-socket*) > > Andreas > Greetings. I am using cl-modlisp already. I tried (force-output *modlisp-socket*) (close *modlisp-socket*) but to no avail. Any other ideas? Is there some way to capture the STDERR of the Lisp process for more verbose error messages? Regards, Marko Riedel From riedelmo at mathematik.uni-stuttgart.de Tue Oct 6 19:46:17 2009 From: riedelmo at mathematik.uni-stuttgart.de (Marko Riedel) Date: Tue, 6 Oct 2009 21:46:17 +0200 Subject: [mod-lisp-devel] compiling mod-lisp Message-ID: <19147.40585.341176.387327@one.mathematik.uni-stuttgart.de> Hi all, I would like to compile the latest version of mod-lisp on a Debian system. I could not find a Makefile anywhere and I'm missing the right includes and compiler switches. Could someone give me a hand here? Do I need to install the apache sources and if yes, what is the right package? Thanks! Best regards, Marko Riedel From keke at gol.com Wed Oct 7 06:10:50 2009 From: keke at gol.com (Takehiko Abe) Date: Wed, 07 Oct 2009 15:10:50 +0900 Subject: [mod-lisp-devel] compiling mod-lisp In-Reply-To: <19147.40585.341176.387327@one.mathematik.uni-stuttgart.de> References: <19147.40585.341176.387327@one.mathematik.uni-stuttgart.de> Message-ID: <4ACC30EA.4020300@gol.com> Marko Riedel wrote: > Do I need to install the apache sources and if yes, what is the right > package? No. You only need either apache2-threaded-dev or apache2-prefork-dev. The package include apxs (APache eXtenSion tool). Use it to compile the source e.g.: $ apxs2 -c mod_lisp2.c From riedelmo at mathematik.uni-stuttgart.de Fri Oct 9 19:45:50 2009 From: riedelmo at mathematik.uni-stuttgart.de (Marko Riedel) Date: Fri, 9 Oct 2009 21:45:50 +0200 Subject: [mod-lisp-devel] compiling mod-lisp In-Reply-To: <4ACC30EA.4020300@gol.com> References: <19147.40585.341176.387327@one.mathematik.uni-stuttgart.de> <4ACC30EA.4020300@gol.com> Message-ID: <19151.37614.659944.358389@one.mathematik.uni-stuttgart.de> Takehiko Abe writes: > Marko Riedel wrote: > > > Do I need to install the apache sources and if yes, what is the right > > package? > > No. You only need either apache2-threaded-dev or apache2-prefork-dev. > The package include apxs (APache eXtenSion tool). Use it to compile the > source e.g.: > > $ apxs2 -c mod_lisp2.c Dear friends, this comman worked as it should. However, I'm still getting a timeout from the Lisp process. Here is my test program: (format *modlisp-socket* "~a~%" "HTTP/1.1 200 OK") (format *modlisp-socket* "~a~%~%" "Content-Type: text/html") (format *modlisp-socket* "~a~%" "Hello, world.") Could it be that I need to compute the Content-Length header and add it to the output? That seems a cumbersome way of going about things. Is there a package that does this automatically? Best regards, Marko Riedel From marc.battyani at fractalconcept.com Fri Oct 9 20:38:38 2009 From: marc.battyani at fractalconcept.com (Marc Battyani) Date: Fri, 09 Oct 2009 16:38:38 -0400 Subject: [mod-lisp-devel] compiling mod-lisp In-Reply-To: <19151.37614.659944.358389@one.mathematik.uni-stuttgart.de> References: <19147.40585.341176.387327@one.mathematik.uni-stuttgart.de> <4ACC30EA.4020300@gol.com> <19151.37614.659944.358389@one.mathematik.uni-stuttgart.de> Message-ID: <4ACF9F4E.3010707@fractalconcept.com> Marko Riedel wrote: > Takehiko Abe writes: > > Marko Riedel wrote: > > > > > Do I need to install the apache sources and if yes, what is the right > > > package? > > > > No. You only need either apache2-threaded-dev or apache2-prefork-dev. > > The package include apxs (APache eXtenSion tool). Use it to compile the > > source e.g.: > > > > $ apxs2 -c mod_lisp2.c > > Dear friends, > > this comman worked as it should. However, I'm still getting a timeout > from the Lisp process. Here is my test program: > > (format *modlisp-socket* "~a~%" "HTTP/1.1 200 OK") > (format *modlisp-socket* "~a~%~%" "Content-Type: text/html") > > (format *modlisp-socket* "~a~%" "Hello, world.") > > Could it be that I need to compute the Content-Length header and add > it to the output? That seems a cumbersome way of going about things. Is > there a package that does this automatically? > If you don't send the length then you have to close the socket so that mod_lisp knows that it has received all the data. Marc