Fix `sky-bench testkey` causing RST due to wrong buffer size

Also fixed linuxpkg harness that was broken due to code cleanup
in 14d9eb4bac
next
Sayan Nandan 3 years ago
parent df994cf4f7
commit 2ccd771833
No known key found for this signature in database
GPG Key ID: 8BC07A0A4D41DD52

@ -41,6 +41,7 @@ All changes in this project will be noted in this file.
- Fixed edge case where time on host is incorrect, resulting in bad snapshot names which might
ultimately lead to loss of snapshot data
- Fixed remote snapshots with same names being overwritten
- (sky-bench) Fixed `testkey` causing RSTs
## Version 0.7.4

@ -73,7 +73,7 @@ pub fn create_linuxpkg(package_type: LinuxPackageType) -> HarnessResult<()> {
// install cargo-deb
util::handle_child("install cargo-deb", cmd!("cargo", "install", "cargo-deb"))?;
// assemble the command
let mut build_args = vec!["deb".to_owned()];
let mut build_args = vec!["cargo".into(), "deb".to_owned()];
if let Some(t) = util::get_var(util::VAR_TARGET) {
build_args.push("--target".to_string());
build_args.push(t);

@ -44,7 +44,7 @@ pub fn create_testkeys(host: &str, port: u16, num: usize, connections: usize, si
move || TcpStream::connect(host.clone()).unwrap(),
|sock, packet: Vec<u8>| {
sock.write_all(&packet).unwrap();
let mut buf = [0u8; 7];
let mut buf = [0u8; 8];
let _ = sock.read_exact(&mut buf).unwrap();
},
|socket| {

Loading…
Cancel
Save