Re: [racket-users] Web server hits "Sorry, this page has expired. Please go back."

2018-10-17 Thread Luke Whittlesey
Interesting conversation.. I want to add that #lang web-server does have file-boxes ( https://docs.racket-lang.org/web-server/stateless.html?q=web-server#%28part._lang%2Ffile-box%29) for when one might want to preserve data like you would in the store. To run across multiple machines I would

Re: [racket-users] Web server hits "Sorry, this page has expired. Please go back."

2018-10-14 Thread George Neuner
Hi Philip, Sorry for the delay in responding ... busy day. On 10/14/2018 7:09 AM, Philip McGrath wrote: On Sun, Oct 14, 2018 at 5:30 AM George Neuner > wrote: You are absolutely correct that in typical usage globals are not closed over ... normally they

Re: [racket-users] Web server hits "Sorry, this page has expired. Please go back."

2018-10-14 Thread Hendrik Boom
On Sun, Oct 14, 2018 at 07:09:38AM -0400, Philip McGrath wrote: > On Sun, Oct 14, 2018 at 5:30 AM George Neuner wrote: > > > You are absolutely correct that in typical usage globals are not closed > > over ... normally they are considered mutable shared "communication" > > state. > > > >

Re: [racket-users] Web server hits "Sorry, this page has expired. Please go back."

2018-10-14 Thread Philip McGrath
On Sun, Oct 14, 2018 at 5:30 AM George Neuner wrote: > You are absolutely correct that in typical usage globals are not closed > over ... normally they are considered mutable shared "communication" > state. > > However, I was speaking more generally: to be persisted long duration, > and be made

Re: [racket-users] Web server hits "Sorry, this page has expired. Please go back."

2018-10-14 Thread George Neuner
On 10/13/2018 9:43 PM, Philip McGrath wrote: On Sat, Oct 13, 2018 at 6:32 PM George Neuner > wrote: Remember that a continuation is not a simple thing - in order to resume a program from a particular point, the entire state of the current call chain

Re: [racket-users] Web server hits "Sorry, this page has expired. Please go back."

2018-10-13 Thread Philip McGrath
On Sat, Oct 13, 2018 at 6:32 PM George Neuner wrote: > Remember that a continuation is not a simple thing - in order to resume a > program from a particular point, the entire state of the current call chain > must be preserved: the globals, the call stack, the thread state, etc. ad > nauseam.

Re: [racket-users] Web server hits "Sorry, this page has expired. Please go back."

2018-10-13 Thread George Neuner
Hi Marc, On 10/13/2018 3:37 PM, Marc Kaufmann wrote: Hi George, thanks, this is incredibly helpful. On Sat, Oct 13, 2018 at 9:11 PM George Neuner > wrote: : 3) results from the initial search are written into a dedicated table in the database.  The

Re: [racket-users] Web server hits "Sorry, this page has expired. Please go back."

2018-10-13 Thread Philip McGrath
On Sat, Oct 13, 2018 at 4:02 PM Marc Kaufmann wrote: > If I understand correctly, the stateful servlet stores the continuation in > the RAM directly (probably in a form that is not that different from the > serialized one, but slightly more efficiently?), while the stateless > servlet writes

Re: [racket-users] Web server hits "Sorry, this page has expired. Please go back."

2018-10-13 Thread Philip McGrath
On Sat, Oct 13, 2018 at 3:11 PM George Neuner wrote: > The web-server language helps in conserving memory because its > continuations can be serialized - stored in files, or in databases, etc. - > and so the program's continuation state(s) can be persisted to disk rather > than memory as in a

Re: [racket-users] Web server hits "Sorry, this page has expired. Please go back."

2018-10-13 Thread Marc Kaufmann
On Sat, Oct 13, 2018 at 8:45 PM Philip McGrath wrote: > "Stateless servlets avoid this issue by making continuations serializable, >> so they can be saved on the client, in a database, etc." >> Does this mean I have to deal with managing them myself? >> > > No, `#lang web-server` will manage the

Re: [racket-users] Web server hits "Sorry, this page has expired. Please go back."

2018-10-13 Thread Marc Kaufmann
Hi George, thanks, this is incredibly helpful. On Sat, Oct 13, 2018 at 9:11 PM George Neuner wrote: > Hi Marc, > > On 10/13/2018 12:17 PM, Marc Kaufmann wrote: > > > On Sat, Oct 13, 2018 at 5:49 PM George Neuner > wrote: > >> >> When the program is operating normally, are you seeing

Re: [racket-users] Web server hits "Sorry, this page has expired. Please go back."

2018-10-13 Thread George Neuner
Hi Marc, On 10/13/2018 12:17 PM, Marc Kaufmann wrote: On Sat, Oct 13, 2018 at 5:49 PM George Neuner > wrote: When the program is operating normally, are you seeing *different* continuation URLs every time you execute the same send/suspend/... call? 

Re: [racket-users] Web server hits "Sorry, this page has expired. Please go back."

2018-10-13 Thread Philip McGrath
> > "Stateless servlets avoid this issue by making continuations serializable, > so they can be saved on the client, in a database, etc." > Does this mean I have to deal with managing them myself? > No, `#lang web-server` will manage the continuations for you, just as stateful servlets do. There

Re: [racket-users] Web server hits "Sorry, this page has expired. Please go back."

2018-10-13 Thread Marc Kaufmann
On Sat, Oct 13, 2018 at 5:49 PM George Neuner wrote: > Hi Marc, > > On 10/13/2018 10:42 AM, Marc Kaufmann wrote: > > Thanks George and Philip. > > George, while I am sure that in some places I allow using continuations > after a delay, that's not what I meant. What I feel is happening (with >

Re: [racket-users] Web server hits "Sorry, this page has expired. Please go back."

2018-10-13 Thread George Neuner
Hi Marc, On 10/13/2018 10:42 AM, Marc Kaufmann wrote: Thanks George and Philip. George, while I am sure that in some places I allow using continuations after a delay, that's not what I meant. What I feel is happening (with little evidence, mind you) is that, when I come back to my website

Re: [racket-users] Web server hits "Sorry, this page has expired. Please go back."

2018-10-13 Thread Marc Kaufmann
Thanks George and Philip. George, while I am sure that in some places I allow using continuations after a delay, that's not what I meant. What I feel is happening (with little evidence, mind you) is that, when I come back to my website after 3 days and open the homepage, it creates it on the fly

Re: [racket-users] Web server hits "Sorry, this page has expired. Please go back."

2018-10-13 Thread George Neuner
On 10/13/2018 9:27 AM, Marc Kaufmann wrote: Hi all, I am running the Racket web server with continuations and I keep getting "Sorry, this page has expired. Please go back." rather sporadically. I can't seem to figure out why and when this happens. I get it more on my local server running on

[racket-users] Web server hits "Sorry, this page has expired. Please go back."

2018-10-13 Thread Marc Kaufmann
Hi all, I am running the Racket web server with continuations and I keep getting "Sorry, this page has expired. Please go back." rather sporadically. I can't seem to figure out why and when this happens. I get it more on my local server running on localhost. A few patterns that I believe are