mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
bpo-35065: Remove StreamReaderProtocol._untrack_reader
(#10212)
The call to `_untrack_reader` is performed too soon, causing the protocol to forget about the reader before `connection_lost` can run and feed the EOF to the reader. See bpo-35065.
This commit is contained in:
parent
5d95312fb8
commit
fd512d7645
4 changed files with 26 additions and 11 deletions
|
@ -36,11 +36,6 @@ class SubprocessStreamProtocol(streams.FlowControlMixin,
|
|||
info.append(f'stderr={self.stderr!r}')
|
||||
return '<{}>'.format(' '.join(info))
|
||||
|
||||
def _untrack_reader(self):
|
||||
# StreamWriter.close() expects the protocol
|
||||
# to have this method defined.
|
||||
pass
|
||||
|
||||
def connection_made(self, transport):
|
||||
self._transport = transport
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue