summaryrefslogtreecommitdiff
path: root/main/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/http.c')
-rw-r--r--main/http.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/http.c b/main/http.c
index ef3b4b22b..3346cadb4 100644
--- a/main/http.c
+++ b/main/http.c
@@ -1873,6 +1873,11 @@ static int httpd_process_request(struct ast_tcptls_session_instance *ser)
return -1;
}
+ if (ast_shutdown_final()) {
+ ast_http_error(ser, 503, "Service Unavailable", "Shutdown in progress");
+ return -1;
+ }
+
/* process "Request Headers" lines */
if (http_request_headers_get(ser, &headers)) {
return -1;