net: tcp: Explicitly notify buffer allocation failures in retransmission
Log an error to explicitly log a failed buffer allocation in TCP retransmission. This avoids silently failing retransmissions due to repeating buffer allocation failures. Signed-off-by: Sjors Hettinga <s.a.hettinga@gmail.com>
This commit is contained in:
parent
0a9b2ed391
commit
d49d06735a
1 changed files with 2 additions and 0 deletions
|
@ -1192,6 +1192,8 @@ static void tcp_resend_data(struct k_work *work)
|
|||
}
|
||||
|
||||
goto out;
|
||||
} else if (ret == -ENOBUFS) {
|
||||
NET_ERR("TCP failed to allocate buffer in retransmission");
|
||||
}
|
||||
|
||||
k_work_reschedule_for_queue(&tcp_work_q, &conn->send_data_timer,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue