List Info

Thread: Session usage/issues




Session usage/issues
user name
2006-10-20 20:09:36
Gloria wrote:
> I am currently playing with cherrypy sessions, and
recovery from
> crash/failures.
> My settings:
> server.socket_port = 1234
> server.thread_pool = 10
> tools.sessions.on = True
> tools.sessions.storage_type = "file"
> tools.sessions.storage_path =
"/usr/local/Test/CherryPy/SessionData"
> tools.sessions.timeout = 60
> 
> I start the tp main loop, and all is well. I access my
login 
> page, then
> my app, and all is good.
> I then remove the session file, and try to access my
application
> without logging in again, and cherrypy does not respond
to my request.
> The browser hangs. strace on cherrypy reveals that it
is 
> still running,
> but not responding to my request at all.
> 
> I was hoping that if somehow the session file got
mangled or
> disappeared altogether, that cherrypy could recover
from this. But it
> looks like it doesn't. I exit the browser, and try to
get 
> back into the
> login screen, and the browser still hangs.
> 
> I was hoping cherrypy would treat this as a new session
(empty session
> data). Is this a reasonable expectation?

I think it's reasonable. Are there any tracebacks in your
cherrypy error
log?


Robert Brewer
System Architect
Amor Ministries
fumanchuamor.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at ht
tp://groups-beta.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

Session usage/issues
user name
2006-10-21 06:11:41
Unfortunately there is nothing in the access or error logs,
and nothing
in the redirected cherrypy output. I do notice, however,
that if I kill
cherrypy at that moment, when my HTTP session is hanging,
HTTP stops
hanging. So, somewhere in cherrypy, it's making HTTP wait
for a
response, and never responds but keeps runnning.

The good news is that it is very easy to reproduce.

Thank you in advance,
Gloria


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at ht
tp://groups-beta.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )