tcp/session: notify transport of close when tx fifo is not empty 37/16537/5
authorFlorin Coras <fcoras@cisco.com>
Wed, 19 Dec 2018 06:44:27 +0000 (22:44 -0800)
committerFlorin Coras <fcoras@cisco.com>
Wed, 19 Dec 2018 10:17:34 +0000 (02:17 -0800)
commite96bf63bd0dc483179dc595b65ebd8bf2b310b8b
treede98f93bf4ac9aab85782b2e3f34d02583d35646
parente2ea193171f4701aa575379da0e1bac16a85aa33
tcp/session: notify transport of close when tx fifo is not empty

Disconnect transport even if tx fifo is not empty and have transport
deal with the problem. In case of tcp, add timer to fin_wait_1. If it
expires and we're still in established state, cleanup but only after
waiting for session tx events to cleanup.

Change-Id: I45759a3c43dd096bb2c03daf5372416c30678d62
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/vnet/session/session_node.c
src/vnet/tcp/tcp.c
src/vnet/tcp/tcp.h
src/vnet/tcp/tcp_input.c