This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author iunknwn
Recipients Matt Spitz, dmacnet, iunknwn, josh.r, torsten
Date 2018-04-05.22:45:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1522968350.79.0.682650639539.issue24882@psf.upfronthosting.co.za>
In-reply-to
Content
I've submitted a PR that should resolve this - it uses a simple atomic counter to ensure new threads are not created if existing threads are idle. 

One concern I do have - while writing the patch, I noticed the existing submit method (specifically the adjust_thread_count function) isn't thread safe. I've added more details in the PR.
History
Date User Action Args
2018-04-05 22:45:50iunknwnsetrecipients: + iunknwn, torsten, josh.r, Matt Spitz, dmacnet
2018-04-05 22:45:50iunknwnsetmessageid: <1522968350.79.0.682650639539.issue24882@psf.upfronthosting.co.za>
2018-04-05 22:45:50iunknwnlinkissue24882 messages
2018-04-05 22:45:50iunknwncreate