]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
fixed error message in iostream 1231/head
authordaftshady <daftonshady@gmail.com>
Sun, 26 Oct 2014 12:06:59 +0000 (21:06 +0900)
committerdaftshady <daftonshady@gmail.com>
Sun, 26 Oct 2014 12:06:59 +0000 (21:06 +0900)
tornado/iostream.py

index eced6d6482bd017efff1c27c3dd61d5638df3957..2d5df992329c29f26256e3e3879a3d004b37882f 100644 (file)
@@ -331,7 +331,7 @@ class BaseIOStream(object):
         if data:
             if (self.max_write_buffer_size is not None and
                     self._write_buffer_size + len(data) > self.max_write_buffer_size):
-                raise StreamBufferFullError("Reached maximum read buffer size")
+                raise StreamBufferFullError("Reached maximum write buffer size")
             # Break up large contiguous strings before inserting them in the
             # write buffer, so we don't have to recopy the entire thing
             # as we slice off pieces to send to the socket.