Skip to content
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

Remove dead code related to segment requests #3748

Merged
merged 3 commits into from
May 12, 2020

Conversation

matzf
Copy link
Contributor

@matzf matzf commented May 6, 2020

  • Remove code for segment request validation
    This segment request validation appears to never have been activated.

    This will be solved differently in the future, by having a separate segment request handler for local requests (TCP only) and, in core ASes only, a simpler handler for requests from other path servers (over SCION/QUIC). This will simplify the validation of the requests, so the existing code would not help a lot.

  • Remove unused RetrySleep and IsParamsLocal from segreq. These have become unused by removing the request holding feature in PS: Remove request holding #3604.
    Replace use of now unneeded segreq.LocalInfo interface with segfetcher.LocalInfo


This change is Reviewable

@matzf matzf changed the title Remove dead code for segment request validation Remove dead code related to segment requests May 6, 2020
@scrye scrye requested a review from lukedirtwalker May 11, 2020 14:46
@scrye scrye added the feature New feature or request label May 11, 2020
Copy link
Collaborator

@lukedirtwalker lukedirtwalker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 14 of 14 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

a discussion (no related file):
I'm surprised we never used it 🙈 but you're right this will change anyway so let's remove it now.


matzf added 3 commits May 12, 2020 08:10
This segment request validation appears to never have been activated.

This will be solved differently in the future, by having a separate
segment request handler for local requests (TCP only) and, in core ASes
only, a simpler handler for requests from other path servers (over
SCION/QUIC).
This will simplify the validation of the requests, so the existing code
would not help a lot.
These have become unused by removing the request holding feature in scionproto#3604.
@matzf matzf force-pushed the segfetcher-rm-validator branch from 9745548 to 0b0f539 Compare May 12, 2020 06:10
@lukedirtwalker lukedirtwalker merged commit 1e2560c into scionproto:master May 12, 2020
@matzf matzf deleted the segfetcher-rm-validator branch May 12, 2020 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants