In the last chapter, I'm a bit suspicious about the output of the console. Why is the request output Shutting down after the first request. Then the program can request a second time, and the output Shutting down means that the listener is no longer processing requests.
Development environment:Chrome 113.0.5672.126 (arm64);Apple M2
output is:
Shutting down.
Worker 0 got a job; executing.
Worker 1 disconnected; shutting down.
Worker 2 got a job; executing.
Worker 3 disconnected; shutting down.
Shutting down worker 0
Worker 0 disconnected; shutting down.
Shutting down worker 1
Shutting down worker 2
Worker 2 disconnected; shutting down.
Shutting down worker 3