When processing a restart request, the router sends a QUIT message to all existing processes of the application. Then, a new shared application port is created to ensure that new requests won't be handled by the old processes of the application.
8 lines
161 B
Python
8 lines
161 B
Python
import os
|
|
|
|
def application(environ, start_response):
|
|
body = "v1".encode()
|
|
|
|
start_response('200', [('Content-Length', str(len(body)))])
|
|
return [body]
|