Kernel: Fix TCP sending

TCP send was effectively always waiting for connection to close and then
return a value of 0.
This commit is contained in:
Bananymous 2024-06-25 09:48:32 +03:00
parent 67dfe0bcf3
commit d7b8458a56
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ namespace Kernel
const uint32_t target_ack = m_send_window.start_seq + m_send_window.data_size;
m_semaphore.unblock();
while (m_send_window.start_seq < target_ack)
while (m_send_window.current_ack < target_ack)
{
if (m_state != State::Established)
return return_with_maybe_zero();