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

Panic if Zebra exceeds its connection limit #2947

Merged
merged 1 commit into from
Oct 28, 2021

Conversation

teor2345
Copy link
Contributor

@teor2345 teor2345 commented Oct 25, 2021

Motivation

This is a runtime check for PR #2944 and PR #2961.

It's based on those PRs.

Solution

Panic if the PeerSet has more peers than the total inbound + outbound connection limit.

Review

@jvff is reviewing PRs #2944 and #2961.

Reviewer Checklist

  • Tests for Expected Behaviour
  • Tests for Errors

@teor2345 teor2345 added P-High C-security Category: Security issues A-network Area: Network protocol updates or fixes labels Oct 25, 2021
@teor2345 teor2345 self-assigned this Oct 25, 2021
@teor2345 teor2345 force-pushed the limit-outbound-peers branch from 4b453b6 to 3839027 Compare October 26, 2021 00:12
@teor2345 teor2345 force-pushed the limit-outbound-peers branch 2 times, most recently from 8ec9c93 to 6188022 Compare October 26, 2021 07:03
@teor2345 teor2345 force-pushed the limit-outbound-peers branch from 6188022 to e51afcb Compare October 27, 2021 01:20
@teor2345 teor2345 force-pushed the limit-outbound-peers branch from e51afcb to 4315699 Compare October 27, 2021 01:25
@teor2345 teor2345 force-pushed the panic-peer-limit branch 2 times, most recently from 856cfbe to deeb503 Compare October 27, 2021 03:47
@teor2345 teor2345 changed the base branch from limit-outbound-peers to limit-inbound-peers October 27, 2021 03:48
@teor2345 teor2345 requested a review from jvff October 27, 2021 03:51
@teor2345 teor2345 marked this pull request as ready for review October 27, 2021 03:51
@teor2345 teor2345 force-pushed the limit-inbound-peers branch from ea49fcf to b50e322 Compare October 28, 2021 00:36
@teor2345 teor2345 merged commit 417ac5f into limit-inbound-peers Oct 28, 2021
@teor2345 teor2345 deleted the panic-peer-limit branch October 28, 2021 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-network Area: Network protocol updates or fixes C-security Category: Security issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants