]> git.ipfire.org Git - thirdparty/tornado.git/commit
tcpclient,netutil: Set FD_CLOEXEC on all sockets created by Tornado 2064/head
authorBen Darnell <ben@bendarnell.com>
Mon, 29 May 2017 00:10:01 +0000 (20:10 -0400)
committerBen Darnell <ben@bendarnell.com>
Mon, 29 May 2017 13:47:50 +0000 (09:47 -0400)
commit920302327f354083033ad8a8f1919477410a3f4f
treeda5bbaadaab9fc426d5a722717f36c14fea4aab3
parent2e622ae71df4b877a4e3ced76c3fc3e93d416322
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