mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-06-08 09:27:45 +08:00
Don't close socket
This commit is contained in:
parent
9cabd445f3
commit
a0e9e2f3c0
@ -11,5 +11,5 @@ LENGTH="${#HTML}"
|
|||||||
RESPONSE="HTTP/1.1 200 OK\nContent-Length: ${LENGTH}\nConnection: close\n\n$HTML\n\n"
|
RESPONSE="HTTP/1.1 200 OK\nContent-Length: ${LENGTH}\nConnection: close\n\n$HTML\n\n"
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
echo -en "$RESPONSE" | nc -N -q 1 -lp "${1:-5000}";
|
echo -en "$RESPONSE" | nc -lp "${1:-5000}";
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user