fix: global_request_scheduler_add err handling

master
Sean McBride 3 years ago
parent c1dcc7b176
commit 16e2613c05

@ -249,10 +249,8 @@ resume_blocked_read(struct epoll_event *evt)
return; return;
} }
/* If the global request scheduler is full, return a 429 to the client /* If the global request scheduler is full, return a 429 to the client */
*/ if (unlikely(global_request_scheduler_add(sandbox) == NULL)) {
sandbox = global_request_scheduler_add(sandbox);
if (unlikely(sandbox == NULL)) {
http_session_send_err_oneshot(session, 429); http_session_send_err_oneshot(session, 429);
sandbox_free(sandbox); sandbox_free(sandbox);
} }

Loading…
Cancel
Save