mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2026-01-22 09:26:41 -05:00
12 lines
214 B
Bash
Executable file
12 lines
214 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
SSE_SERVER=$1
|
|
PORT=$2
|
|
|
|
"$SSE_SERVER" -p $PORT &
|
|
PID=$!
|
|
sleep 0.1
|
|
|
|
echo === sse_count $SSE_SERVER $PORT 1>&2
|
|
curl -N "http://localhost:${PORT}/count/10" -H user-agent:test --max-time 10
|
|
kill $PID
|