HomePhabricator

net: isolate the protocol-agnostic part of CConnman::AcceptConnection()

Description

net: isolate the protocol-agnostic part of CConnman::AcceptConnection()

Summary:
Isolate the second half of CConnman::AcceptConnection() into a new
separate method, which could be reused if we accept incoming connections
by other means than accept() (first half of
CConnman::AcceptConnection()).

This is a backport of core#20685 [6/20]
https://github.com/bitcoin/bitcoin/pull/20685/commits/7c224fdac4699a2c4953b33ab423f9cddbf95cf7

Depends on D11014

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D11015

Details

Provenance
Vasil Dimov <vd@FreeBSD.org>Authored on Nov 24 2020, 11:40
PiRKCommitted on Feb 10 2022, 09:12
PiRKPushed on Feb 10 2022, 09:12
Reviewer
Restricted Project
Differential Revision
D11015: net: isolate the protocol-agnostic part of CConnman::AcceptConnection()
Parents
rABCb4f3921ff564: net: check for invalid socket earlier and get the bind address earlier in…
Branches
Unknown
Tags
Unknown