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:
parent
67dfe0bcf3
commit
d7b8458a56
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue