1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +00:00

IPv4: Protect the list of unacked TCP packets with a lock

Otherwise things get racy and crashy.
This commit is contained in:
Andreas Kling 2019-11-23 21:44:32 +01:00
parent dc9d44d7b1
commit 61f611bf3c
2 changed files with 4 additions and 0 deletions

View file

@ -172,5 +172,6 @@ private:
timeval tx_time;
};
Lock m_not_acked_lock { "TCPSocket unacked packets" };
SinglyLinkedList<OutgoingPacket> m_not_acked;
};