Last active
December 19, 2015 20:45
-
-
Save stephen-soltesz/9d78f4e11e9923a4a2ac to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Current prod release (first ndt-ssl release) | |
SERVER=ndt.iupui.mlab4v4.atl04.measurement-lab.org | |
# Latest ndt-ssl development. | |
SERVER=ndt.iupui.mlab2v4.nuq0t.measurement-lab.org | |
# Previous prod release (non-ssl) - 3.7.0.1 | |
SERVER=ndt.iupui.mlab3v4.nuq1t.measurement-lab.org | |
PORT=3001 | |
# PORT=4649 # For mlab2.nuq0t and port=4659 for ssl. | |
start=$( date +%s ) | |
while /bin/true; do | |
t1=$( date +%s ) | |
strace -f -o trace.log ./web100clt --disablemid --disablesfw -n "${SERVER}" -p "${PORT}" -dddddd 2>&1 | grep -v 'Protocol logging is not enabled' | |
t2=$( date +%s ) | |
if [[ $(( $t2 - $t1 )) -gt 45 ]] ; then | |
echo "Client hung for " $(( $t2 - $t1 )) | |
break | |
fi | |
done | |
end=$( date +%s ); | |
echo "Testing ran for " $(( $end - $start )) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment