comparison tests/test-ssh-proto.t @ 42896:7e19b640c53e

sshserver: flush stream after command dispatch I am not sure why this is not working as expected, but without this client might not see some important output. Without this patch moving some output at transaction closing time makes it disapear for ssh client in various sitaution.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 08 Sep 2019 01:02:34 +0200
parents a0886a4d6dce
children edc8504bc26b
comparison
equal deleted inserted replaced
42895:bbcaf3a74822 42896:7e19b640c53e
102 I/O logging works 102 I/O logging works
103 103
104 $ hg debugserve --sshstdio --logiofd 1 << EOF 104 $ hg debugserve --sshstdio --logiofd 1 << EOF
105 > hello 105 > hello
106 > EOF 106 > EOF
107 e> flush() -> None
107 o> write(4) -> 4: 108 o> write(4) -> 4:
108 o> 440\n 109 o> 440\n
109 o> write(440) -> 440: 110 o> write(440) -> 440:
110 o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n 111 o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
111 440 112 440
117 > EOF 118 > EOF
118 440 119 440
119 capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash 120 capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
120 121
121 $ cat $TESTTMP/io 122 $ cat $TESTTMP/io
123 e> flush() -> None
122 o> write(4) -> 4: 124 o> write(4) -> 4:
123 o> 440\n 125 o> 440\n
124 o> write(440) -> 440: 126 o> write(440) -> 440:
125 o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n 127 o> capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
126 o> flush() -> None 128 o> flush() -> None