tiny_httpd/tests/sse_count.sh
2021-12-11 18:40:02 -10:00

12 lines
180 B
Bash
Executable file

#!/usr/bin/env sh
echo see_count 1>&2
SSE_SERVER=$1
PORT=8086
"$SSE_SERVER" -p $PORT &
PID=$!
sleep 0.1
curl -N "http://localhost:${PORT}/count/10" -H user-agent:test
kill $PID