]> git.ipfire.org Git - thirdparty/tornado.git/commit
tcpclient,netutil: Set FD_CLOEXEC on all sockets created by Tornado
authorBen Darnell <ben@bendarnell.com>
Mon, 29 May 2017 00:10:01 +0000 (20:10 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 27 Aug 2017 15:47:53 +0000 (11:47 -0400)
commitc85dfd2e11ded1edfa937c535d5eb6483e715597
tree2b0f7c7a32fb810fd2e9f14593d69a00bfd02bdb
parent79b2683437ad49e26fc33d5975b6a661ee0b863c
tcpclient,netutil: Set FD_CLOEXEC on all sockets created by Tornado

PR #1984 was based on the mistaken belief that we were already
doing this (and in python 3.4+, it's true, thanks to PEP 446). This
fixes a regression introduced in Tornado 4.5 in which autoreload would
leak file descriptors and leave client connections hanging.

Fixes #2057
tornado/netutil.py
tornado/platform/common.py
tornado/tcpclient.py