Commit 7b12b136 authored by Lorenzo Colitti's avatar Lorenzo Colitti
Browse files

Don't trip over FIN+ACK retransmits.

Unlike most of the sockets in sock_diag_test, the ones used in
testFinWait1Socket do not disable FIN_WAIT by enabling linger
with a timeout of 0. This means that the sockets will retransmit
FINs until they are acked, which can cause subsequent tests or
subsequent test runs to fail with unexpected packets.

Fix this by ACKing the FIN. While we're at it, also check that
we see the socket go into FIN_WAIT2 state.

With this change, sock_diag_test passes when run 50 times in a
row.

Change-Id: I7978f608dcc8a19504ed31bc33c4d9f02c573754
parent 75b83003
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment