homepage

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 vstinner
Recipients koobs, vstinner
Date 2017年08月18日.16:22:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1503073354.47.0.880820086563.issue30830@psf.upfronthosting.co.za>
In-reply-to
Content
The problem is that socketserver.ThreadingMixIn spawns threads without waiting for their completion in server_close(). For example, the following two tests use socketserver.ThreadingMixIn and so can leak a running thread:
* test.test_logging.SocketHandlerTest.test_output()
* test.test_logging.DatagramHandlerTest.test_output()
Example:
10-STABLE-amd64% ./python -m test -v test_logging --fail-env-changed -F -m test.test_logging.DatagramHandlerTest.test_output -m test.test_logging.ConfigDictTest.test_listen_config_10_ok --match=test.test_logging.SocketHandlerTest.test_output
(...)
0:00:09 load avg: 2.54 [ 7] test_logging
test_output (test.test_logging.SocketHandlerTest) ... ok
test_output (test.test_logging.DatagramHandlerTest) ... ok
test_listen_config_10_ok (test.test_logging.ConfigDictTest) ... threading_setup (1, <_weakrefset.WeakSet object at 0x806243398>)
History
Date User Action Args
2017年08月18日 16:22:34vstinnersetrecipients: + vstinner, koobs
2017年08月18日 16:22:34vstinnersetmessageid: <1503073354.47.0.880820086563.issue30830@psf.upfronthosting.co.za>
2017年08月18日 16:22:34vstinnerlinkissue30830 messages
2017年08月18日 16:22:34vstinnercreate

AltStyle によって変換されたページ (->オリジナル) /