Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/core/lwip/tcp_in.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ void L3_level_tcp_input(struct pbuf *p, struct tcp_pcb *pcb)
PCB. */
tcp_pcb_remove(pcb);
} else {
/* If the application has registered a "sent" function to be
/* If the application has registered an "acked" function to be
called when new send buffer space is available, we call it
now. */
if (pcb->acked > 0) {
Expand All @@ -225,7 +225,7 @@ void L3_level_tcp_input(struct pbuf *p, struct tcp_pcb *pcb)
if (err == ERR_ABRT) {
goto aborted;
}
/* If the upper layer can't receive this data, store it */
/* If the upper layer can't receive this data, drop it */
if (err != ERR_OK) {
pcb->rcv_wnd += in_data.recv_data->tot_len;
pbuf_free(in_data.recv_data);
Expand Down
2 changes: 1 addition & 1 deletion src/core/sock/sockinfo_tcp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2234,7 +2234,7 @@ int sockinfo_tcp::handle_rx_error(bool blocking)
errno = EAGAIN;
}

if (m_p_socket_stats) {
if (unlikely(m_p_socket_stats) && ret == -1) {
if (errno == EAGAIN) {
m_p_socket_stats->counters.n_rx_eagain++;
} else {
Expand Down