netmgr: fix TCP backlog and client quota count

- add support for TCP backlog, using the value provided by config.
 - don't attach to TCP client quota for listening sockets, only
   connected sockets.
This commit is contained in:
Witold Kręcicki
2019-11-22 13:19:45 +01:00
committed by Evan Hunt
parent c4ad0466d6
commit 37354ee225
7 changed files with 36 additions and 18 deletions

View File

@@ -115,7 +115,7 @@ n=$((n + 1))
echo_i "TCP high-water: check initial statistics ($n)"
ret=0
refresh_tcp_stats
assert_int_equal "${TCP_CUR}" 1 "current TCP clients count" || ret=1
assert_int_equal "${TCP_CUR}" 0 "current TCP clients count" || ret=1
if [ $ret != 0 ]; then echo_i "failed"; fi
status=$((status + ret))