Page MenuHomePhabricator

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

Authored by PiRK on Nov 13 2024, 17:48.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCf0f41147f028: 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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.Nov 13 2024, 17:48
src/util/sock.cpp
79 ↗(On Diff #50841)

renamed so as to not shadow the Sock::ERR data member

This revision is now accepted and ready to land.Nov 14 2024, 08:29