diff options
Diffstat (limited to 'ext/http/00_serve.js')
-rw-r--r-- | ext/http/00_serve.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/http/00_serve.js b/ext/http/00_serve.js index 69ad88566..35af49b04 100644 --- a/ext/http/00_serve.js +++ b/ext/http/00_serve.js @@ -534,6 +534,8 @@ function mapToCallback(responseBodies, context, signal, callback, onError) { // Did everything shut down while we were waiting? if (context.closed) { + // We're shutting down, so this status shouldn't make it back to the client but "Service Unavailable" seems appropriate + op_http_set_promise_complete(req, 503); innerRequest?.close(); return; } |