Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
Possible fix for raw protocol on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrueger committed Feb 20, 2024
1 parent b91cb02 commit 1b018dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl Com for ComRawImpl {

fn read_data(&mut self) -> TermComResult<Option<Vec<u8>>> {
let mut buf = [0; 1024 * 256];

self.tcp_stream.set_nonblocking(true)?;
match self.tcp_stream.read(&mut buf) {
Ok(size) => Ok(Some(buf[0..size].to_vec())),
Err(ref e) => {
Expand Down

0 comments on commit 1b018dd

Please sign in to comment.