Re: [racket-users] Change error message of web server continuations from "Sorry, this page has expired. Please go back."

2019-12-23 Thread Marc Kaufmann
Yeah, I realized that after George's message. I also now searched the Github for the message and found this: ``` #:manager [manager (make-threshold-LRU-manager (lambda (request) (response/xexpr `(html (head (title "Page Has Expired.")) (body (p "Sorry, this page has expired. Please go back.")

Re: [racket-users] Change error message of web server continuations from "Sorry, this page has expired. Please go back."

2019-12-23 Thread Sam Tobin-Hochstadt
The default is documented here: https://docs.racket-lang.org/web-server/run.html?q=serve%2Fservlet#%28def._%28%28lib._web-server%2Fservlet-env..rkt%29._serve%2Fservlet%29%29 as the default value for the `#:manager` argument. The default handler is `#f`, which produces the behavior you see. You can

Re: [racket-users] Change error message of web server continuations from "Sorry, this page has expired. Please go back."

2019-12-23 Thread Marc Kaufmann
Of course. I read this line of the docs: #:manager manager but not this one: manager : manager? = (make-threshold-LRU-manager

Re: [racket-users] Change error message of web server continuations from "Sorry, this page has expired. Please go back."

2019-12-23 Thread George Neuner
On 12/23/2019 6:54 AM, Marc Kaufmann wrote: By the way, where does it say that the default is 130MB? In the docs for serve/servlet. Can I set the instance-expiration-manager to #f and that is the place where it generates the 'Sorry, this page link has expired' error? So I could provide a m

Re: [racket-users] Change error message of web server continuations from "Sorry, this page has expired. Please go back."

2019-12-23 Thread Marc Kaufmann
In order to do everything as I do now - where I have been blissfully unaware of the managers - I do ``` (define the-manager-with-threshold (make-threshold-LRU-manager what-is-this-instance-expiration-handler? (* 512 1024 1024))) (serve/servlet start ... ... #:manager the-manager-with-threshold)

Re: [racket-users] Change error message of web server continuations from "Sorry, this page has expired. Please go back."

2019-12-22 Thread Philip McGrath
You can probably use `make-threshold-LRU-manager ` with a much higher memory threshold than the default from `serve/servlet`, which is about 1

Re: [racket-users] Change error message of web server continuations from "Sorry, this page has expired. Please go back."

2019-12-21 Thread George Neuner
On 12/21/2019 4:38 AM, Marc Kaufmann wrote: Did you perhaps change the continuation manager - or its setup? https://docs.racket-lang.org/web-server/servlet.html?q=ffi#%28part._managers%29 No, not

Re: [racket-users] Change error message of web server continuations from "Sorry, this page has expired. Please go back."

2019-12-21 Thread Marc Kaufmann
> Did you perhaps change the continuation manager - or its setup? > > https://docs.racket-lang.org/web-server/servlet.html?q=ffi#%28part._managers%29 > > > No, not really. I simply import send/suspend/dispatch etc and use them without doing anything in particular. I am requiring them within

Re: [racket-users] Change error message of web server continuations from "Sorry, this page has expired. Please go back."

2019-12-20 Thread George Neuner
On 12/20/2019 8:45 AM, Marc Kaufmann wrote: reading a past thread started by me, I realize that I should have learned how to implement Philip's advice on using stateless continuations, but well I didn't. So I still use vanilla `send/suspend/dispatch` and hence my users hit the "Sorry, this pa

[racket-users] Change error message of web server continuations from "Sorry, this page has expired. Please go back."

2019-12-20 Thread Marc Kaufmann
Hi all, reading a past thread started by me, I realize that I should have learned how to implement Philip's advice on using stateless continuations, but well I didn't. So I still use vanilla `send/suspend/dispatch` and hence my users hit the "Sorry, this page has expired. Please go back." The q