[plt-scheme] Web server examples

From: Anton van Straaten (anton at appsolutions.com)
Date: Tue Sep 6 16:21:45 EDT 2005

Don Felgar wrote:
> On Thu, Sep 01, 2005, Jay McCarthy wrote:
> 
>>Seems to work fine for me, perhaps it is only an issue with an old version?
> 
> 
> I too saw that behavior at one time.  I talked with Greg about it, but
> he couldn't repro the problem so I assumed I'd broken something
> locally.  When I tried it again sometime later the bug was gone.
> Since Anton has seen the problem too I suspect it's a deeper bug.

My later post pointed out that this was due to a session timeout.  The 
error occurs "intermittently" because it's dependent on how long you 
wait before following a link to another page.

The default-servlet-timeout in the SVN version of configuration-table is 
currently 30 secs.  When going through an example servlet like the quiz, 
this doesn't give one much time to ponder how many snootpikes there 
might be in a pulchritude[*].  I don't know why the timeout is set that 
low, but I would have thought a value more like 1800 (30 min) would be 
more reasonable for most applications, perhaps with a comment about the 
risk of excessive memory consumption in a high-traffic environment.

Also, having the error message speculate as to the possibility of a 
session timeout might be helpful, if that's possible.  Otherwise, the 
error message makes it seem like an application bug.

Anton

[*] Any resemblance to actual Imperial units is entirely coincidental, 
but would not be entirely surprising, considering.


Posted on the users mailing list.