diff --git a/src/stack/tcpv4/Processor.cpp b/src/stack/tcpv4/Processor.cpp index c537723..780b561 100644 --- a/src/stack/tcpv4/Processor.cpp +++ b/src/stack/tcpv4/Processor.cpp @@ -927,7 +927,7 @@ Processor::process(Connection& e, const uint16_t len, const uint8_t* const data, can_send = e.hasAvailableSegments() && e.window() > 0; } /* - * Otherwise, just send the ACK. This will cause the + * Otherwise, just send the ACK. */ else { res = sendAck(e); diff --git a/src/transport/ena/Port.cpp b/src/transport/ena/Port.cpp index c86a7d1..a7321ef 100644 --- a/src/transport/ena/Port.cpp +++ b/src/transport/ena/Port.cpp @@ -195,9 +195,11 @@ Port::~Port() void Port::run() { - if (m_admin->poll(m_raw) == Status::NoDataAvailable) { + Status status; + do { + status = m_admin->poll(m_raw); m_raw.run(); - } + } while (status == Status::Ok); } Device::Ref