Answer the question
In order to leave comments, you need to log in
How to correctly stop the http server?
Good afternoon. Now we have stopped the server through the Shutdown function, but as far as I understand, it "kills" all the routines that it launched without waiting for their work to complete. Roughly speaking - all requests that were during the stop will not be fulfilled.
I need the http server to stop accepting new requests, but process all the old ones correctly and give data to users, and when the people in the queue run out, it stops itself. How to do this?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question