Page MenuHomePhabricator

net: extend Sock::Wait() to report a timeout
ClosedPublic

Authored by PiRK on Feb 9 2022, 08:59.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCc1e9bd74019c: net: extend Sock::Wait() to report a timeout
Summary

Previously Sock::Wait() would not have signaled to the caller whether a timeout or one of the requested events occurred since that was not needed by any of the callers.

Such functionality will be needed in the I2P implementation, thus extend the Sock::Wait() method.

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

Depends on D11019

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.Feb 9 2022, 08:59
This revision is now accepted and ready to land.Feb 9 2022, 11:46