On 14/02/2015, at 9:25 PM, Paul Royik <[email protected]> wrote:
> But you wrote func.die_on_timeout.
> Do we need func.info.die_on_timeout here or function is same for all?
The die_on_timeout() function then accesses back via the thread local.
def die_on_timeout():
if time.time() > func.info.end_time:
raise RuntimeError('timeout')
I was trying to hide the fact a thread local was being used from the function
doing the call of die_on_timeout().
Graham
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.