]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
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)
tornado/simple_httpclient.py

index 759f460ad4f44c9ecb5165a395cfea50bcfd2865..71508e5c2dc74206fd00b06af9acecfba2ebe7f5 100644 (file)
@@ -339,6 +339,7 @@ class _HTTPConnection(object):
                                 buffer=buffer,
                                 effective_url=self.request.url)
         self.callback(response)
+        self.stream.close()
         self.callback = None
 
     def _on_chunk_length(self, data):