Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Aug 18, 2017

support.threading_cleanup() waits for 1 second before emitting a
warning if there are threads running in the background. With this
change, it now emits the warning immediately, to be able to catch
bugs more easily.

https://bugs.python.org/issue31234

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the "leak" terminology here. I think the previous message was better.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. I reverted to the original message.

@vstinner
Copy link
Member Author

I rebased my change to get other fixes for dangling threads and processes.

@vstinner vstinner changed the title [WIP] bpo-31234: threading_cleanup() now warns immediately bpo-31234: threading_cleanup() now warns immediately Sep 13, 2017
@vstinner
Copy link
Member Author

test_ftplib and test_poplib should have been fixed by PR #3540. I rebased my PR one more time, only test_ssl should fail. Sadly, I'm unable to reproduce the test_ssl failure.

@vstinner vstinner changed the title bpo-31234: threading_cleanup() now warns immediately [WIP] bpo-31234: threading_cleanup() now warns immediately Sep 13, 2017
@vstinner
Copy link
Member Author

I tag again the PR as [WIP] until the test_ssl issue is fixed.

I rebased the PR to get the second test_ftplib fix (PR #3544).

support.threading_cleanup() waits for 1 second before emitting a
warning if there are threads running in the background. With this
change, it now emits the warning immediately, to be able to catch
bugs more easily.
@vstinner vstinner changed the title [WIP] bpo-31234: threading_cleanup() now warns immediately bpo-31234: threading_cleanup() now warns immediately Sep 13, 2017
@vstinner vstinner merged commit ace1ecc into python:master Sep 13, 2017
@vstinner vstinner deleted the stricter_threading_cleanup branch September 13, 2017 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants