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.
--- 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()