1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:47:37 +00:00

Kernel: Convert TCP retransmit queue from HashTable to IntrusiveList

This commit is contained in:
Andreas Kling 2021-08-15 16:37:45 +02:00
parent 7063303022
commit 6a20733fcd
3 changed files with 13 additions and 8 deletions

View file

@ -153,7 +153,6 @@ public:
void release_to_originator();
void release_for_accept(RefPtr<TCPSocket>);
static ProtectedValue<HashTable<TCPSocket*>>& sockets_for_retransmit();
void retransmit_packets();
virtual KResult close() override;
@ -222,6 +221,12 @@ private:
// FIXME: Parse window size TCP option from the peer
u32 m_send_window_size { 64 * KiB };
IntrusiveListNode<TCPSocket> m_retransmit_list_node;
public:
using RetransmitList = IntrusiveList<TCPSocket, RawPtr<TCPSocket>, &TCPSocket::m_retransmit_list_node>;
static ProtectedValue<TCPSocket::RetransmitList>& sockets_for_retransmit();
};
}