if test -z "$PORT"; then
PORT=9004
fi
+SERVICE=$3
+if test -z "$SERVICE"; then
+ SERVICE=perf
+fi
H="http://localhost:${PORT}/search.pz2"
-wget -q -O $OF.init.xml "$H/?command=init&service=perf&extra=$OF"
+wget -q -O $OF.init.xml "$H/?command=init&service=${SERVICE}&extra=$OF"
S=`xsltproc get_session.xsl $OF.init.xml`
wget -q -O $OF.search.xml "$H?command=search&query=100&session=$S"
sleep 1
WAIT=5
NUMBER=10
ROUNDS=5
+PORT=9004
+SERVICE=perf
+SHUTDOWN=1
if test -n "$1"; then
. $1
fi
echo "$r"
let i=0
while test $i -lt $NUMBER; do
- ./client.sh $r.$i >$r.$i.log 2>&1 &
+ ./client.sh $r.$i $PORT $SERVICE >$r.$i.log 2>&1 &
sleep $DELAY
let i=$i+1
done
let r=$r+1
done
wait
-wget -O x 'http://localhost:9004/?command=exit'
+if [ "$SHUTDOWN" == "1" ] ; then
+ wget -O x "http://localhost:${PORT}/?command=exit"
+fi
xfree(c);
c = c_next;
}
+ yaz_mutex_destroy(&(*mp)->iochan_mutex);
xfree(*mp);
*mp = 0;
}