Do not rechedule connection if persist handler is called after
connection is closed.
Type: fix
Change-Id: Ibe7c3924c6fb107a36e4d459f32a39e49a0b7ae1
Signed-off-by: Florin Coras <[email protected]>
tcp_worker_stats_inc (wrk, to_persist, 1);
+ if (tc->state == TCP_STATE_CLOSED)
+ return;
+
/* Problem already solved or worse */
- if (tc->state == TCP_STATE_CLOSED || tc->snd_wnd > tc->snd_mss
- || (tc->flags & TCP_CONN_FINSNT))
+ if (tc->snd_wnd > tc->snd_mss || (tc->flags & TCP_CONN_FINSNT))
goto update_scheduler;
available_bytes = transport_max_tx_dequeue (&tc->connection);