mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
gh-127655: Ensure _SelectorSocketTransport.writelines
pauses the protocol if needed (#127656)
Ensure `_SelectorSocketTransport.writelines` pauses the protocol if it reaches the high water mark as needed. Co-authored-by: Kumar Aditya <kumaraditya@python.org>
This commit is contained in:
parent
25eee578c8
commit
e991ac8f20
3 changed files with 14 additions and 0 deletions
|
@ -1175,6 +1175,7 @@ class _SelectorSocketTransport(_SelectorTransport):
|
|||
# If the entire buffer couldn't be written, register a write handler
|
||||
if self._buffer:
|
||||
self._loop._add_writer(self._sock_fd, self._write_ready)
|
||||
self._maybe_pause_protocol()
|
||||
|
||||
def can_write_eof(self):
|
||||
return True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue