Skip to content

Commit

Permalink
Merge branch 'master' of github.com:selissia/connectedhomeip into sil…
Browse files Browse the repository at this point in the history
…abs-force-key
  • Loading branch information
selissia committed Jul 8, 2022
2 parents b482944 + a49c7cc commit 9f04e85
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 8 deletions.
8 changes: 5 additions & 3 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ gn:
- "*.gn"
- "*.gni"

tests:
- src/app/tests/*

github:
- .github

Expand All @@ -66,6 +63,11 @@ tools:
############################################################
# Tests
############################################################
tests:
- src/app/tests/*
- src/app/tests/suites/*
- src/app/tests/suites/certification/*

test driver:
- src/test_driver/*

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cherry-picks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
with:
token: ${{ secrets.MATTER_PAT }}
branch: sve
labels: |
sve cherry pick
reviewers: |
woody-apple
andy31415
Expand Down
9 changes: 8 additions & 1 deletion src/app/server/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,14 @@ CHIP_ERROR Server::Init(const ServerInitParams & initParams)
SuccessOrExit(err);
#endif

app::DnssdServer::Instance().SetSecuredPort(mOperationalServicePort);
//
// We need to advertise the port that we're listening to for unsolicited messages over UDP. However, we have both a IPv4
// and IPv6 endpoint to pick from. Given that the listen port passed in may be set to 0 (which then has the kernel select
// a valid port at bind time), that will result in two possible ports being provided back from the resultant endpoint
// initializations. Since IPv6 is POR for Matter, let's go ahead and pick that port.
//
app::DnssdServer::Instance().SetSecuredPort(mTransports.GetTransport().GetImplAtIndex<0>().GetBoundPort());

app::DnssdServer::Instance().SetUnsecuredPort(mUserDirectedCommissioningPort);
app::DnssdServer::Instance().SetInterfaceId(mInterfaceId);

Expand Down
4 changes: 4 additions & 0 deletions src/app/server/Server.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ namespace chip {

constexpr size_t kMaxBlePendingPackets = 1;

//
// NOTE: Please do not alter the order of template specialization here as the logic
// in the Server impl depends on this.
//
using ServerTransportMgr = chip::TransportMgr<chip::Transport::UDP
#if INET_CONFIG_ENABLE_IPV4
,
Expand Down
6 changes: 6 additions & 0 deletions src/transport/SessionManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ void SessionManager::Shutdown()
mFabricTable->RemoveFabricDelegate(this);
mFabricTable = nullptr;
}

mSecureSessions.ForEachSession([&](auto session) {
session->MarkForEviction();
return Loop::Continue;
});

mMessageCounterManager = nullptr;

mState = State::kNotReady;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9f04e85

Please sign in to comment.