mirror of
https://github.com/python/cpython.git
synced 2025-10-03 21:55:41 +00:00
parent
d24429a20d
commit
7a16a4535d
3 changed files with 23 additions and 2 deletions
|
@ -551,8 +551,11 @@ class SSLProtocol(protocols.Protocol):
|
|||
def _start_shutdown(self):
|
||||
if self._in_shutdown:
|
||||
return
|
||||
self._in_shutdown = True
|
||||
self._write_appdata(b'')
|
||||
if self._in_handshake:
|
||||
self._abort()
|
||||
else:
|
||||
self._in_shutdown = True
|
||||
self._write_appdata(b'')
|
||||
|
||||
def _write_appdata(self, data):
|
||||
self._write_backlog.append((data, 0))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue