ipython/ipython — pull request #4074 by minrk (2013-08-20 23:34:01+00:00)
Title: close Client sockets if connection fails

avoids runaway FDs in cases of frequent client failure.

also cleanup Client.close a little bit, allowing setting `linger` on sockets at shutdown time,
which is helpful for preventing FD growth on connection failure.

Should be considered for backport to 1.1.