Restore transp._force_close()

This commit is contained in:
Andrew Svetlov 2020-03-08 11:32:43 +02:00
parent f031be10c6
commit 8b0f2036c0
1 changed files with 4 additions and 0 deletions

View File

@ -241,6 +241,10 @@ class _SSLProtocolTransport(transports._FlowControlMixin,
self._closed = True
self._ssl_protocol._abort()
def _force_close(self, exc):
self._closed = True
self._ssl_protocol._abort(exc)
def _test__append_write_backlog(self, data):
# for test only
self._ssl_protocol._write_backlog.append(data)