dergoegge
commented at 1:36 PM on April 3, 2023:
member
The send queue members on CNode should not be part of the public interface. This PR makes all of them private and creates a clear interface for the send queue.
The interface after this PR consists of:
CNode::PushMessage for appending a message onto the send queue
CNode::SocketSendData for pushing as many messages from the send queue as possible onto the wire
CNode::IsSendQueueEmpty for checking if the send queue is empty
(CNode::TestOnlyClearSendQueue a test-only utility for clearing the send queue)
[net] Store max send buffer size on CNode32719c9035
[net] Move SocketSendData to CNode
There are no `CConnman` members used in `SocketSendData`, it should
therefore be a method in `CNode` instead.
eee0d86ce1
[net] Move most of CConnman::PushMessage to CNode::PushMessage7a00bd38d8
[net] Add IsSendQueueEmpty to CNode96607d126b
[net] Internalize cs_vSend locking to CNode0922831f3b
[net] Add test only method for clearing CNode send queue4291d1cc7a
[net] Make CNode send queue members private66d193c1f4
scripted-diff: [net] Rename CNode send queue members
#27981 (Fix potential network stalling bug by sipa)
#26621 (refactor: Continue moving application data from CNode to Peer by dergoegge)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
fanquake requested review from jnewbery on Apr 5, 2023
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-04-22 06:13 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me