Skip to content

Commit 08eb24b

Browse files
Rollup merge of rust-lang#150987 - bishop-fix-batch-copy, r=Mark-Simulacrum
remote-test-server: Fix header in batch mode In rust-lang#119999, the length field of the header was changed from 4 bytes to 8. One of the headers in `batch_copy` was missed though, so it sends the wrong size. Fix by switching to `create_header` in that spot too.
2 parents 8a22bab + 2d2d3b0 commit 08eb24b

File tree

1 file changed

+1
-1
lines changed
  • src/tools/remote-test-server/src

1 file changed

+1
-1
lines changed

src/tools/remote-test-server/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ fn batch_copy(buf: &[u8], which: u8, dst: &Mutex<dyn Write>) {
387387
if n > 0 {
388388
t!(dst.write_all(buf));
389389
// Marking buf finished
390-
t!(dst.write_all(&[which, 0, 0, 0, 0,]));
390+
t!(dst.write_all(&create_header(which, 0)));
391391
}
392392
}
393393

0 commit comments

Comments
 (0)