TJ added the comment: Put it in the while loop. Same result. Memory usage grows about 1 GiB per minute. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue22534> _______________________________________