Skip to content
Snippets Groups Projects
Commit 19189c78 authored by Arie Peterson's avatar Arie Peterson
Browse files

Give request handlers more time on reboot

Sleep for a bit after we received a signal to stop cryptops-api. This
gives the request handler that asked to stop the server more time to
send its response to the client, fixing a race condition.
parent aaaa11eb
No related branches found
No related tags found
No related merge requests found
......@@ -101,6 +101,10 @@ int main(int argc, char ** argv)
y_log_message(Y_LOG_LEVEL_DEBUG, "Error starting framework");
}
y_log_message(Y_LOG_LEVEL_DEBUG, "End framework");
// Give request handlers that have called for the stop a chance to
// send their response to the client.
sleep(1);
y_close_logs();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment