K
K
kolo20122017-03-05 12:17:21
go
kolo2012, 2017-03-05 12:17:21

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

1 answer(s)
P
Papa, 2017-03-05
@kolo2012

Doesn't religion allow you to search on your own?
choose

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question