Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
fixed sourc-addr-test
Browse files Browse the repository at this point in the history
on newer Kernels ( e.g. CentOS6), it seems that ip connections
are removed faster than before, so that the netstat call cannot
detect them anymore after waiting 5 seconds.

Directly checking for the connections via netstat still works.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
  • Loading branch information
pstorz authored and Marco van Wieringen committed Oct 30, 2013
1 parent 10c4c1e commit 00ac12c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/source-addr-test
Expand Up @@ -72,7 +72,7 @@ END_OF_DATA

run_bareos

sleep 5
# sleep 5
print_debug "Detecting connections to SD sourced from ${IP}"
netstat -tan | grep -E "127.0.0.1(.|:)$SDPORT .* ${IP}" > $tmp/log3.out
if [ $? -ne 0 ]; then
Expand Down

0 comments on commit 00ac12c

Please sign in to comment.