]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
iostream: Fix copy/pasted comment 3053/head
authorBen Darnell <ben@bendarnell.com>
Thu, 26 Aug 2021 18:51:25 +0000 (14:51 -0400)
committerGitHub <noreply@github.com>
Thu, 26 Aug 2021 18:51:25 +0000 (14:51 -0400)
Co-authored-by: Pierce Lopez <pierce.lopez@gmail.com>
tornado/iostream.py

index e0ec51334feeb07a4bac630dfb7169f8921ee7c3..930f73d61aa31dbe5735a43165c2a0ecc4a64d27 100644 (file)
@@ -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: