From a4bdf483908228864cac8ebcdb29ad31dea69f41 Mon Sep 17 00:00:00 2001
From: Rongrong <i@rong.moe>
Date: Fri, 16 Sep 2022 15:05:46 +0800
Subject: [PATCH] Sync SSL shutdown behavior with CPy3.11 asyncio

---
 uvloop/sslproto.pyx | 2 --
 1 file changed, 2 deletions(-)

diff --git a/uvloop/sslproto.pyx b/uvloop/sslproto.pyx
index 42bb7644..d3514c5a 100644
--- a/uvloop/sslproto.pyx
+++ b/uvloop/sslproto.pyx
@@ -620,8 +620,6 @@ cdef class SSLProtocol:
     cdef _do_shutdown(self, object context=None):
         """Send close_notify and wait for the same from the peer."""
         try:
-            # we must skip all application data (if any) before unwrap
-            self._do_read_into_void(context)
             try:
                 self._sslobj.unwrap()
             except ssl_SSLAgainErrors as exc: