l2cap socket psm is not generated once per BleV2Medium initialisation. Accept() waits till all other l2cap connections are closed to create a new connection

This commit is contained in:
kidfromjupiter
2026-02-06 12:28:58 +00:00
parent 2718d9942b
commit cdfe437831
4 changed files with 23 additions and 14 deletions
@@ -48,8 +48,7 @@ class BleL2capServerSocket final : public api::ble::BleL2capServerSocket {
void SetCloseNotifier(absl::AnyInvocable<void()> notifier);
private:
mutable absl::Mutex mutex_;
absl::CondVar cond_;
absl::Mutex mutex_;
int psm_ = 0;
int server_fd_ = -1;
int stop_pipe_[2] = {-1, -1}; // read end [0], write end [1]