mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 12:19:37 +03:00
Kernel: Fix sign error in TCP resend logic
This commit is contained in:
parent
5c15ca7b84
commit
25301e450a
Notes:
sideshowbarker
2024-07-18 21:47:20 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/25301e450a1 Pull-request: https://github.com/SerenityOS/serenity/pull/5323 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/bgianfo
@ -242,8 +242,7 @@ void TCPSocket::send_outgoing_packets()
|
|||||||
|
|
||||||
LOCKER(m_not_acked_lock, Lock::Mode::Shared);
|
LOCKER(m_not_acked_lock, Lock::Mode::Shared);
|
||||||
for (auto& packet : m_not_acked) {
|
for (auto& packet : m_not_acked) {
|
||||||
// FIXME: This doesn't look correct to me. Bug?
|
auto diff = now - packet.tx_time;
|
||||||
auto diff = packet.tx_time - now;
|
|
||||||
if (diff <= Time::from_nanoseconds(500'000'000))
|
if (diff <= Time::from_nanoseconds(500'000'000))
|
||||||
continue;
|
continue;
|
||||||
packet.tx_time = now;
|
packet.tx_time = now;
|
||||||
|
Loading…
Reference in New Issue
Block a user