summaryrefslogtreecommitdiff
path: root/net/test/tcp_fastopen_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'net/test/tcp_fastopen_test.py')
-rwxr-xr-xnet/test/tcp_fastopen_test.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/test/tcp_fastopen_test.py b/net/test/tcp_fastopen_test.py
index f5fc00f..95596c5 100755
--- a/net/test/tcp_fastopen_test.py
+++ b/net/test/tcp_fastopen_test.py
@@ -66,9 +66,6 @@ class TcpFastOpenTest(multinetwork_base.MultiNetworkBaseTest):
self.tcp_metrics.GetMetrics(saddr, daddr)
def clearBlackhole(self):
- # Prior to 4.15 this sysctl is not namespace aware.
- if net_test.LINUX_VERSION < (4, 15, 0) and not os.path.exists(BH_TIMEOUT_SYSCTL):
- return
timeout = self.GetSysctl(BH_TIMEOUT_SYSCTL)
# Write to timeout to clear any pre-existing blackhole condition
@@ -130,6 +127,7 @@ class TcpFastOpenTest(multinetwork_base.MultiNetworkBaseTest):
t.payload = scapy.Raw(net_test.UDP_PAYLOAD)
msg = "TFO write, expected %s" % desc
self.ExpectPacketOn(netid, msg, syn)
+ s.close()
def testConnectOptionIPv4(self):
self.CheckConnectOption(4)