changeset 52277:f6b30f4b5e07 stable

sshpeer: fix another occurrence of short write handling This one is much less likely to be problematic in practice since the data we're writing is constant-size, but it's not enough to completely rule out the problem.
author Arseniy Alekseyev <aalekseyev@janestreet.com>
date Thu, 06 Feb 2025 15:37:59 +0000
parents 7aec18bded6d
children b964f92261d4
files mercurial/sshpeer.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/sshpeer.py	Wed Feb 05 16:49:43 2025 +0000
+++ b/mercurial/sshpeer.py	Thu Feb 06 15:37:59 2025 +0000
@@ -342,7 +342,7 @@
         ui.debug(b'sending hello command\n')
         ui.debug(b'sending between command\n')
 
-        stdin.write(b''.join(handshake))
+        _write_all(stdin.write, b''.join(handshake))
         stdin.flush()
     except IOError:
         badresponse()