You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2017-09-13.20:56:41.797>created_at=<Date2017-09-01.14:58:24.937>labels= ['3.7', 'tests', 'performance']
title='test_ssl: reference cycle between ThreadedEchoServer and its ConnectionHandler'updated_at=<Date2017-09-13.20:56:41.796>user='https://github.com/vstinner'
While testing bpo-31234 fix, I noticed that some test_ssl tests using ThreadedEchoServer create reference cycles with ConnectionHandler: ConnectionHandler fills ThreadedEchoServer.conn_errors with exceptions, but exceptions keep an alive traceback object which contains frame locals.
I tried to use traceback.clear_frames(), but this function is broken: see bpo-31321.
Attached PR works around the issue by storing errors are text rather than objects.
New changeset 1b00bdd by Victor Stinner (Miss Islington (bot)) in branch '3.6':
[3.6] bpo-31323: Fix reference leak in test_ssl (GH-3263) (bpo-3538) 1b00bdd
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: