]> git.ipfire.org Git - thirdparty/tornado.git/commit
Noticed that a max_clients around 50 would cause us to run out of file descriptors... 309/head
authorDavid Recordon <davidrecordon@David-Recordons-MacBook-Pro.local>
Wed, 20 Jul 2011 02:12:28 +0000 (19:12 -0700)
committerDavid Recordon <davidrecordon@David-Recordons-MacBook-Pro.local>
Wed, 20 Jul 2011 02:12:28 +0000 (19:12 -0700)
commitb4324c1ec70a89d72bcb87747c1159b465234b78
treea679db8d69e221f9cd2446e026117b48dfb21458
parente360c72a1617ef8fd2fe4ce7274a7611c49484cf
Noticed that a max_clients around 50 would cause us to run out of file descriptors. lsof showed that TCP connections would remain in the established state versus being closed. stream.close is called in error states but not success. Thus call stream.close after passing the response to the callback. Result was seeing the TCP connections being properly closed as well as no change in fetching data.
tornado/simple_httpclient.py