From: Ben Darnell Date: Thu, 26 Aug 2021 18:51:25 +0000 (-0400) Subject: iostream: Fix copy/pasted comment X-Git-Tag: v6.2.0b1~39^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4b2f788b08c5f416d4b544735d8f742f4993e40;p=thirdparty%2Ftornado.git iostream: Fix copy/pasted comment Co-authored-by: Pierce Lopez --- diff --git a/tornado/iostream.py b/tornado/iostream.py index e0ec51334..930f73d61 100644 --- a/tornado/iostream.py +++ b/tornado/iostream.py @@ -1568,7 +1568,7 @@ class SSLIOStream(IOStream): def write_to_fd(self, data: memoryview) -> int: # clip buffer size at 1GB since SSL sockets only support upto 2GB # this change in behaviour is transparent, since the function is - # already expected to (possibly) read less than the provided buffer + # already expected to (possibly) write less than the provided buffer if len(data) >> 30: data = memoryview(data)[: 1 << 30] try: