From 334c6e4bbb97a4c0656e1b07c3e6a565f68eae2b Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Fri, 28 Nov 2008 22:21:10 +0000 Subject: The BIG refactoring [tm]. Too many changes to count them. If it doesn't suite you, revert to last version. --- tests/testsuite.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'tests/testsuite.sh') diff --git a/tests/testsuite.sh b/tests/testsuite.sh index b07546d..dace2c6 100644 --- a/tests/testsuite.sh +++ b/tests/testsuite.sh @@ -1,15 +1,11 @@ #!/bin/sh while true; do - request_string="GET /announce?info_hash=\ -%$(printf %02X $(( $RANDOM & 0xff )) )\ -%$(printf %02X $(( $RANDOM & 0xff )) )\ -2345678901234567\ -%$(printf %02X $(( $RANDOM & 0xff )) )\ -%$(printf %02X $(( $RANDOM & 0xff )) )\ -&ip=$(( $RANDOM & 0xff )).17.13.15&port=$(( $RANDOM & 0xff )) HTTP/1.0\n" + request_string="GET /announce?info_hash=0123456789012345678\ +%$(printf %02X $(( $RANDOM & 0xf )) )\ +&ip=$(( $RANDOM & 0xf )).$(( $RANDOM & 0xf )).13.16&port=$(( $RANDOM & 0xff )) HTTP/1.0\n" -# echo $request_string +echo $request_string # echo echo $request_string | nc 127.0.0.1 6969 >/dev/null # echo -- cgit v1.2.3