tiny_httpd/tests/sse_count.sh
2022-12-06 18:18:39 -10:00

11 lines
172 B
Bash
Executable file

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