On Jun 4, 1:12 pm, Paweł Stradomski <[email protected]> wrote:
> W liście Wyatt Baldwin z dnia czwartek 04 czerwca 2009:
>
> > > I think it's a bad idea. The second request would run in the same thread
>
> > Would it?
>
> I'm pretty sure of that. You're not going through full HTTP stack, ie. your
> subrequest is not going through the HTTP server - instead it is just a simple
> function call to the WSGI appliaction - and as function calls usually do, it
> will run in the same thread.

That sounds right, but the WebOb docs talk about making subrequests,
so it seems like it would be OK...

I just did an experiment with setting an attribute on `c` and then
running a subrequest. The subrequest doesn't see the attr, so that
would indicate a different thread. Also, `id(c._current_obj())` is
different in the subrequest.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to