]> git.ipfire.org Git - thirdparty/tornado.git/commit
Improve isolation of stack contexts.
authorBen Darnell <ben@bendarnell.com>
Sat, 29 Sep 2012 21:07:10 +0000 (14:07 -0700)
committerBen Darnell <ben@bendarnell.com>
Sat, 29 Sep 2012 21:07:10 +0000 (14:07 -0700)
commit69e449201c5235b3502107b15df213d62255cc30
treef97ae78006d618600865ffbb888708d2aa460473
parent98177912dc0f1ff5e658f53f63b5ef99e8456e40
Improve isolation of stack contexts.

Previously, a chain of callbacks started without any contexts could
accidentally pick up other contexts based on where the callbacks
were run.  This was due to a mistaken optimization in the no-context
case; now the behavior is the same whether the initial context was empty
or not.
tornado/stack_context.py
tornado/test/stack_context_test.py