From daniel at dbrunner.de Sat Jan 18 10:38:27 2014 From: daniel at dbrunner.de (Daniel Brunner) Date: Sat, 18 Jan 2014 11:38:27 +0100 Subject: Persistent sessions In-Reply-To: <5CDC4F92-D653-4F81-9268-50268E9D060E@flownet.com> References: <5CDC4F92-D653-4F81-9268-50268E9D060E@flownet.com> Message-ID: <52DA59A3.1070500@dbrunner.de> Hi Ron, I haven't done that but it should be a straightforward thing to do. Just read the section about sessions, look into the code and then you can easily store your sessions objects somewhere. Best wishes, Daniel Am 18.01.2014 03:59, schrieb Ron Garret: > I need to be able to save and restore HT sessions so that they will survive a server restart. Before I dive into this I thought I would ask if anyone has done this already so I don?t reinvent the wheel. > > Thanks, > rg > > > From olegsivokon at gmail.com Fri Jan 31 15:33:22 2014 From: olegsivokon at gmail.com (Oleg Sivokon) Date: Fri, 31 Jan 2014 17:33:22 +0200 Subject: Cant serve static files Message-ID: <87a9eckvy5.fsf@gmail.com> Hello list, There should be something very simple I've overlooked, yet I can't find it. Hunchentoot seems not to be able to locate the root directory, where I have my static content, and I can't get it to print any useful information about it. That's why I'm asking for your help. Below is my setup: (setf (logical-pathname-translations "rgol") '(... ("WWW;*.*.*" "/home/wvxvw/.../www/") ("WWW;*;*.*.*" "/home/wvxvw/.../www/*") ...)) (make-instance 'hunchentoot:acceptor :port 4242 :document-root #p"rgol:www;" :message-log-destination #p"rgol:logs;messages.log" :access-log-destination #p"rgol:logs;access.log") I've defined another handler, which doesn't depend on static files, and it works fine, however, when I try to access static files, the log record looks like this: 127.0.0.1 - [2014-01-31 17:12:40] "GET /img/made-with-lisp-logo.jpg HTTP/1.1" 404 206 "http://localhost:4242/game.html" "Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0" But the file is definitely there, because if I try this in REPL: (directory #p"rgol:www;*.*") (#P"/home/wvxvw/.../www/game.html" ... more files ...) My version of Hunchentoot is: hunchentoot:*hunchentoot-version* "1.2.17" $ sbcl --version SBCL 1.1.2-1.fc18 Best, Oleg From ron at flownet.com Sat Jan 18 02:59:03 2014 From: ron at flownet.com (Ron Garret) Date: Fri, 17 Jan 2014 18:59:03 -0800 Subject: Persistent sessions Message-ID: <5CDC4F92-D653-4F81-9268-50268E9D060E@flownet.com> I need to be able to save and restore HT sessions so that they will survive a server restart. Before I dive into this I thought I would ask if anyone has done this already so I don?t reinvent the wheel. Thanks, rg From josrr at ymail.com Sat Jan 18 17:51:34 2014 From: josrr at ymail.com (=?iso-8859-1?Q?Jos=E9_Ronquillo?=) Date: Sat, 18 Jan 2014 09:51:34 -0800 (PST) Subject: Fw: ssl support In-Reply-To: <1390059423.24416.YahooMailNeo@web122905.mail.ne1.yahoo.com> References: <1389817517.32240.YahooMailNeo@web122902.mail.ne1.yahoo.com> <1390059423.24416.YahooMailNeo@web122905.mail.ne1.yahoo.com> Message-ID: <1390067494.89767.YahooMailNeo@web122902.mail.ne1.yahoo.com> Hello Hans, ?my setup is common lisp implementation: SBCL 1.1.14 Linux?3.10.5 i686 and?Linux 3.10 amd64 Hunchentoot version 1.2.24 This code can help you to reproduce the problem: (ql:quickload "hunchentoot") (defvar *acceptor* nil "El acceptor de hunchentoot") (defun inicia-ht (&optional (port 4242)) ? (format t "Iniciando el servidor en el puerto ~5,'0d~%" port) ? (setf *acceptor* (make-instance 'hunchentoot:easy-ssl-acceptor ?:port port ?:ssl-certificate-file "./server.crt" ?:ssl-privatekey-file "./server.key")) ; ?(setf *acceptor* (make-instance 'hunchentoot:easy-acceptor ; ?:port port) ? (setf (hunchentoot:acceptor-document-root *acceptor*) (pathname "/var/www/")) ? (hunchentoot:start *acceptor*)) (inicia-ht) You can test with ab with and without ssl ab -n 1000 -c 10 https://localhost:4242/index.html ab -n 1000 -c 10 http://localhost:4242/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From stassats at gmail.com Sat Jan 18 19:43:31 2014 From: stassats at gmail.com (Stas Boukarev) Date: Sat, 18 Jan 2014 23:43:31 +0400 Subject: Fw: ssl support In-Reply-To: <1390067494.89767.YahooMailNeo@web122902.mail.ne1.yahoo.com> (=?utf-8?Q?=22Jos=C3=A9?= Ronquillo"'s message of "Sat, 18 Jan 2014 09:51:34 -0800 (PST)") References: <1389817517.32240.YahooMailNeo@web122902.mail.ne1.yahoo.com> <1390059423.24416.YahooMailNeo@web122905.mail.ne1.yahoo.com> <1390067494.89767.YahooMailNeo@web122902.mail.ne1.yahoo.com> Message-ID: <87r4859iu4.fsf@gmail.com> Jos? Ronquillo writes: > Hello Hans, ?my setup is > > > > common lisp implementation: SBCL 1.1.14 > Linux?3.10.5 i686 and?Linux 3.10 amd64 > > Hunchentoot version 1.2.24 > > > This code can help you to reproduce the problem: > > > > (ql:quickload "hunchentoot") > > (defvar *acceptor* nil "El acceptor de hunchentoot") > > (defun inicia-ht (&optional (port 4242)) > ? (format t "Iniciando el servidor en el puerto ~5,'0d~%" port) > ? (setf *acceptor* (make-instance 'hunchentoot:easy-ssl-acceptor > ?:port port > ?:ssl-certificate-file "./server.crt" > ?:ssl-privatekey-file "./server.key")) > ; ?(setf *acceptor* (make-instance 'hunchentoot:easy-acceptor > ; ?:port port) > ? (setf (hunchentoot:acceptor-document-root *acceptor*) (pathname "/var/www/")) > ? (hunchentoot:start *acceptor*)) > > (inicia-ht) > > > > You can test with ab with and without ssl > That was caused by the SSL stream not being closed. Should be fixed in git, thanks for the report! -- With best regards, Stas. From hans.huebner at gmail.com Sun Jan 19 00:01:41 2014 From: hans.huebner at gmail.com (=?ISO-8859-1?Q?Hans_H=FCbner?=) Date: Sat, 18 Jan 2014 19:01:41 -0500 Subject: Fw: ssl support In-Reply-To: <87r4859iu4.fsf@gmail.com> References: <1389817517.32240.YahooMailNeo@web122902.mail.ne1.yahoo.com> <1390059423.24416.YahooMailNeo@web122905.mail.ne1.yahoo.com> <1390067494.89767.YahooMailNeo@web122902.mail.ne1.yahoo.com> <87r4859iu4.fsf@gmail.com> Message-ID: I have made a fresh release containing the patch. Please report if you have further issues. -Hans 2014/1/18 Stas Boukarev > Jos? Ronquillo writes: > > > Hello Hans, my setup is > > > > > > > > common lisp implementation: SBCL 1.1.14 > > Linux 3.10.5 i686 and Linux 3.10 amd64 > > > > Hunchentoot version 1.2.24 > > > > > > This code can help you to reproduce the problem: > > > > > > > > (ql:quickload "hunchentoot") > > > > (defvar *acceptor* nil "El acceptor de hunchentoot") > > > > (defun inicia-ht (&optional (port 4242)) > > (format t "Iniciando el servidor en el puerto ~5,'0d~%" port) > > (setf *acceptor* (make-instance 'hunchentoot:easy-ssl-acceptor > > :port port > > :ssl-certificate-file "./server.crt" > > :ssl-privatekey-file "./server.key")) > > ; (setf *acceptor* (make-instance 'hunchentoot:easy-acceptor > > ; :port port) > > (setf (hunchentoot:acceptor-document-root *acceptor*) (pathname > "/var/www/")) > > (hunchentoot:start *acceptor*)) > > > > (inicia-ht) > > > > > > > > You can test with ab with and without ssl > > > That was caused by the SSL stream not being closed. Should be fixed in > git, thanks for the report! > > -- > With best regards, Stas. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From olegsivokon at gmail.com Fri Jan 31 15:45:37 2014 From: olegsivokon at gmail.com (Left Right) Date: Fri, 31 Jan 2014 17:45:37 +0200 Subject: Cant serve static files In-Reply-To: <87a9eckvy5.fsf@gmail.com> References: <87a9eckvy5.fsf@gmail.com> Message-ID: Sorry, I've copied the wrong log entry, this is the correct one: 127.0.0.1 - [2014-01-31 17:35:44] "GET /game.html HTTP/1.1" 404 188 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36" On Fri, Jan 31, 2014 at 5:33 PM, Oleg Sivokon wrote: > Hello list, > > There should be something very simple I've overlooked, yet I can't find > it. Hunchentoot seems not to be able to locate the root directory, where > I have my static content, and I can't get it to print any useful > information about it. That's why I'm asking for your help. > > Below is my setup: > > (setf (logical-pathname-translations "rgol") > '(... > ("WWW;*.*.*" "/home/wvxvw/.../www/") > ("WWW;*;*.*.*" "/home/wvxvw/.../www/*") > ...)) > > (make-instance 'hunchentoot:acceptor :port 4242 > :document-root #p"rgol:www;" > :message-log-destination #p"rgol:logs;messages.log" > :access-log-destination #p"rgol:logs;access.log") > > I've defined another handler, which doesn't depend on static files, and > it works fine, however, when I try to access static files, the log > record looks like this: > > 127.0.0.1 - [2014-01-31 17:12:40] > "GET /img/made-with-lisp-logo.jpg HTTP/1.1" > 404 206 "http://localhost:4242/game.html" > "Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0" > > But the file is definitely there, because if I try this in REPL: > > (directory #p"rgol:www;*.*") > (#P"/home/wvxvw/.../www/game.html" > ... more files ...) > > My version of Hunchentoot is: > > hunchentoot:*hunchentoot-version* > "1.2.17" > > $ sbcl --version > SBCL 1.1.2-1.fc18 > > Best, > > Oleg > -------------- next part -------------- An HTML attachment was scrubbed... URL: From josrr at ymail.com Wed Jan 15 20:25:17 2014 From: josrr at ymail.com (=?iso-8859-1?Q?Jos=E9_Ronquillo?=) Date: Wed, 15 Jan 2014 12:25:17 -0800 (PST) Subject: ssl support Message-ID: <1389817517.32240.YahooMailNeo@web122902.mail.ne1.yahoo.com> I am currently writing a web application using Hunchentoot; but it seems that there is a problem with its ssl support (using easy-ssl-acceptor): for some unknow reason for me, sbcl, the commom lisp implementation that I use, grows its memory whitout limit when I make tests with ab. I have tested with hunchentoot:easy-acceptor and this problem with the memory does not occur. Does anyone of you guys had seen this behavior? -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans.huebner at gmail.com Fri Jan 17 05:32:01 2014 From: hans.huebner at gmail.com (=?ISO-8859-1?Q?Hans_H=FCbner?=) Date: Fri, 17 Jan 2014 06:32:01 +0100 Subject: ssl support In-Reply-To: <1389817517.32240.YahooMailNeo@web122902.mail.ne1.yahoo.com> References: <1389817517.32240.YahooMailNeo@web122902.mail.ne1.yahoo.com> Message-ID: Jos?, if you could share some details about your setup (i.e. Lisp implementation, platform) and a piece of server code that demonstrates the problem, it'd be easier to reproduce and maybe fix it. Thanks, Hans 2014/1/15 Jos? Ronquillo > I am currently writing a web application using Hunchentoot; but it seems > that there is a problem with its ssl support (using easy-ssl-acceptor): for > some unknow reason for me, sbcl, the commom lisp implementation that I use, > grows its memory whitout limit when I make tests with ab. I have tested > with hunchentoot:easy-acceptor and this problem with the memory does not > occur. Does anyone of you guys had seen this behavior? > -------------- next part -------------- An HTML attachment was scrubbed... URL: