Commit c57e98b5 authored by Manuel Pégourié-Gonnard's avatar Manuel Pégourié-Gonnard
Browse files terminate ssl_server2 cleanly

parent 5f593f07
......@@ -463,8 +463,15 @@ start_server() {
sleep 1
# terminate the running server
# terminate the running server (try closing it cleanly if possible)
stop_server() {
case $SERVER_NAME in
echo SERVERQUIT | $OPENSSL s_client $O_CLIENT_ARGS >/dev/null 2>&1
sleep 1
kill $PROCESS_ID 2>/dev/null
wait $PROCESS_ID 2>/dev/null
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment