8000 pass through pause/resume from subprocess pipe proto to subprocess pr… · python/asyncio@30986ed · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Nov 23, 2017. It is now read-only.

Commit 30986ed

Browse files
committed
pass through pause/resume from subprocess pipe proto to subprocess proto.
1 parent 7220ae3 commit 30986ed

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

asyncio/base_subprocess.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,11 @@ def connection_lost(self, exc):
150150
self.disconnected = True
151151
self.proc._pipe_connection_lost(self.fd, exc)
152152

153-
def eof_received(self):
154-
pass
153+
def pause_writing(self):
154+
self.proc._protocol.pause_writing()
155+
156+
def resume_writing(self):
157+
self.proc._protocol.resume_writing()
155158

156159

157160
class ReadSubprocessPipeProto(WriteSubprocessPipeProto,

0 commit comments

Comments
 (0)
0