make buffers larger
This commit is contained in:
parent
c4c29af38c
commit
ddb5edfc95
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ pub(crate) struct SocketAdapter {
|
||||||
pub(crate) internal: TcpStream,
|
pub(crate) internal: TcpStream,
|
||||||
written: usize,
|
written: usize,
|
||||||
to_write: usize,
|
to_write: usize,
|
||||||
write: [u8; 4096],
|
write: [u8; 1_048_576], // 1MiB
|
||||||
broken: Option<Broken>,
|
broken: Option<Broken>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ impl SocketAdapter {
|
||||||
internal: tcp,
|
internal: tcp,
|
||||||
written: 0,
|
written: 0,
|
||||||
to_write: 0,
|
to_write: 0,
|
||||||
write: [0u8; 4096],
|
write: [0u8; 1_048_576],
|
||||||
broken: None,
|
broken: None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue