]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Corrected or logic to make use of max_buffer_size if it is setted 748/head
authorWaldecir Santos <waldecir@gmail.com>
Wed, 24 Apr 2013 16:30:43 +0000 (13:30 -0300)
committerWaldecir Santos <waldecir@gmail.com>
Wed, 24 Apr 2013 16:30:43 +0000 (13:30 -0300)
tornado/iostream.py

index b86d3540e94738d8921bb20ee9029389011e4413..cb399ad4ae360e12e7e61701b5702f1beb05e91d 100644 (file)
@@ -67,7 +67,7 @@ class BaseIOStream(object):
     def __init__(self, io_loop=None, max_buffer_size=None,
                  read_chunk_size=4096):
         self.io_loop = io_loop or ioloop.IOLoop.current()
-        self.max_buffer_size = 104857600 or max_buffer_size
+        self.max_buffer_size = max_buffer_size or 104857600
         self.read_chunk_size = read_chunk_size
         self.error = None
         self._read_buffer = collections.deque()