Skip to content

Drop outgoing packets on permission errors - #1157

Merged
Ralith merged 1 commit into
quinn-rs:mainfrom
Matthias247:perm
Jul 8, 2021
Merged

Drop outgoing packets on permission errors#1157
Ralith merged 1 commit into
quinn-rs:mainfrom
Matthias247:perm

Conversation

@Matthias247

Copy link
Copy Markdown
Contributor

When packets failed to transmit - e.g. due to being blocked by iptables - the
quinn endpoint kept them around and tried to retransmit them later on. This
usually failed for the same reason, which resulted in an infinitely growing list
of packets to transmit.

To prevent this, this change drops all packets where sending fails for a
a non-fatal reason.

Ralith
Ralith previously approved these changes Jul 8, 2021
Comment thread quinn/src/platform/unix.rs Outdated
When packets failed to transmit - e.g. due to being blocked by iptables - the
quinn endpoint kept them around and tried to retransmit them later on. This
usually failed for the same reason, which resulted in an infinitely growing list
of packets to transmit.

To prevent this, this change drops all packets where sending fails for a
a non-fatal reason.
@Ralith
Ralith merged commit 9e9d1c0 into quinn-rs:main Jul 8, 2021
@Matthias247
Matthias247 deleted the perm branch September 15, 2022 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants