-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore parse errors from pinger when its socket is closed #6953
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @buggmagnet)
ios/PacketTunnelCore/Pinger/TunnelPinger.swift
line 21 at r1 (raw file):
private let replyQueue: DispatchQueue private var destAddress: IPv4Address? // Always accessed from the `replyQueue` and is assigned once, on the main thread of the PacketTunnel. It is thread safe.
Nit: Make this comment a doc instead, with a - Note
to hightlight this info.
71b6717
to
c6dc95d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on @rablador)
ios/PacketTunnelCore/Pinger/TunnelPinger.swift
line 21 at r1 (raw file):
Previously, rablador (Jon Petersson) wrote…
Nit: Make this comment a doc instead, with a
- Note
to hightlight this info.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! all files reviewed, all discussions resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! all files reviewed, all discussions resolved
c6dc95d
to
67dfd8d
Compare
🚨 End to end tests failed. Please check the failed workflow run. |
This PR fixes a race condition where we would get parse error from the pinger due to pending reads when closing its socket.
The fix is to look at whether the
destAddress
is still valid (i.e. socket is still open) before sending the parsing error.This change is