Skip to content

Commit c30c48c

Browse files
committed
fix(netstat_tools): remove CLOSE from netstat command
The netstat command was modified to exclude the 'CLOSE' state from the output. This change ensures that only 'LISTEN' and 'TIME_WAIT' states are included, and so no client connection can be matched.
1 parent 3970338 commit c30c48c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cardano_node_tests/cluster_management/netstat_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def get_netstat_out() -> str:
1515
"""Get output of the `netstat` command."""
1616
try:
1717
return helpers.run_command(
18-
"netstat -pant | grep -E 'LISTEN|TIME_WAIT|CLOSE'", ignore_fail=True, shell=True
18+
"netstat -pant | grep -E 'LISTEN|TIME_WAIT'", ignore_fail=True, shell=True
1919
).decode()
2020
except Exception as excp:
2121
LOGGER.error(f"Failed to fetch netstat output: {excp}") # noqa: TRY400

0 commit comments

Comments
 (0)