On Jan 19, 2011, at 1:45 PM, ae wrote: > > I understand getting a different session is expected. I'm talking > about different behavior in how requests are dispatched to threads. > The above scenarios for example which leads me to believe you can't > reliably use long running functions.
Again, it's not the threads (as long as you're not starving for them), but rather the serialization of requests within sessions that's the concern. If you can arrange to call session.forget(response), you should be OK (though as Ron suggests, the fact that the session file isn't closed might be an issue under Windows, and we'll get that fixed). However, you still might want to avoid long-running functions as request handlers; I'm not trying to persuade you otherwise.