fixed cached readings in fake tls

This commit is contained in:
Alexander Bersenev committed 2019-08-13 15:23:47 +05:00
1 parent 48330f1e8a
commit 53184470e9
1 file changed
+1 -1
+1 -1
View File
@@ -371,7 +371,7 @@ class FakeTLSStreamReader(LayeredStreamReaderBase):
if self.buf and not ignore_buf:
data = self.buf
self.buf = bytearray()
return data
return bytes(data)
while True:
tls_rec_type = await self.upstream.readexactly(1)