mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
udp: don't add messages to resend queue more than once (bugfix)
This commit is contained in:
parent
94e3af2463
commit
2df331c5ab
1 changed files with 3 additions and 2 deletions
|
|
@ -278,8 +278,9 @@ impl<V: IpVersion> Socket<V> {
|
|||
Ok(_) => (),
|
||||
Err(err) => match self.opt_resend_buffer.as_mut() {
|
||||
Some(resend_buffer)
|
||||
if !disable_resend_buffer && (err.raw_os_error() == Some(libc::ENOBUFS))
|
||||
|| (err.kind() == ErrorKind::WouldBlock) =>
|
||||
if !disable_resend_buffer
|
||||
&& ((err.raw_os_error() == Some(libc::ENOBUFS))
|
||||
|| (err.kind() == ErrorKind::WouldBlock)) =>
|
||||
{
|
||||
if resend_buffer.len() < shared.config.network.resend_buffer_max_len {
|
||||
::log::debug!("Adding response to resend queue, since sending it to {} failed with: {:#}", addr, err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue