Skip to content

Commit

Permalink
change payload data size
Browse files Browse the repository at this point in the history
format code
  • Loading branch information
DefectingCat committed Aug 2, 2023
1 parent a21dc4a commit 00535ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ impl Pluto {
let len = self.queue.len();
let frame = &mut self.queue[len - 1];

let data = vec![1u8; self.bytes];
let data = vec![255_u8; self.bytes];
stream.write_all(&data)?;
stream.flush()?;

Expand Down Expand Up @@ -283,8 +283,7 @@ impl Pluto {
let len = self.queue.len();
let frame = &mut self.queue[len - 1];

// let body = [1u8; 56];
let body = vec![1u8; self.bytes];
let body = vec![255_u8; self.bytes];

let first_line = format!("{} / HTTP/1.1\r\n", self.http_method.as_str());
let headers = format!(
Expand Down
2 changes: 0 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ fn main() -> Result<()> {
let (tx, rx) = mpsc::channel();

ctrlc::set_handler(move || {
println!("test");
tx.send(()).unwrap();
})
.unwrap();
Expand All @@ -63,7 +62,6 @@ fn main() -> Result<()> {
};
match rx.try_recv() {
Ok(_) | Err(mpsc::TryRecvError::Disconnected) => {
dbg!("receiver");
break;
}
_ => {}
Expand Down

0 comments on commit 00535ef

Please sign in to comment.