HomePhabricator

net: also wait for exceptional events in Sock::Wait()

Description

net: also wait for exceptional events in Sock::Wait()

Summary:
This mimics closely CConnman::SocketEvents() and the underlying
poll(2).

rename ERR to err in sock.cpp::Sock::Accept to fix warning declaration shadows a static data member of 'Sock'

This is a partial backport of core#24356
https://github.com/bitcoin/bitcoin/pull/24356/commits/cc74459768063a923fb6220a4f420eaf211aee7b

Depends on D17131

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
Vasil Dimov <vd@FreeBSD.org>Authored on May 4 2021, 10:06
PiRKCommitted on Mon, Nov 18, 06:42
PiRKPushed on Mon, Nov 18, 06:42
Reviewer
Restricted Project
Differential Revision
D17132: net: also wait for exceptional events in Sock::Wait()
Parents
rABC48e3344f9f94: net: use Sock in CNode
Branches
Unknown
Tags
Unknown