6 rtmpfiles unicorn_config curl_out curl_err pid r_err r_out r_rot
11 cat > $unicorn_config <<EOF
18 worker_connections $nr_actor
22 rainbows
-D sleep.ru
-c $unicorn_config
26 for i
in $
(awk "BEGIN{for(i=0;i<$nr_client;++i) print i}" </dev
/null
)
28 ( curl
-sSf http
://$listen/2 >> $curl_out 2>> $curl_err ) &
35 kill -USR1 $
(cat $pid)
42 echo elapsed
=$
(( $
(date +%s
) - $start ))
44 test x
"$(wc -l < $curl_out)" = x
$nr_client
45 nr
=$
(sort < $curl_out |
uniq |
wc -l)
48 test x$
(sort < $curl_out |
uniq) = xHello