Skip to content

Commit

Permalink
Increase size of receive buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
徐胖 authored Aug 24, 2021
1 parent 1c2162c commit 54c5698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/packet/netlink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl<R: Read> NetlinkReader<R> {
loop {
match self.state {
NetlinkReaderState::NeedMore => {
let mut buf = [0; 4096];
let mut buf = [0; 65536];
match self.reader.read(&mut buf) {
Ok(0) => {
self.state = NetlinkReaderState::Done;
Expand Down

0 comments on commit 54c5698

Please sign in to comment.