mirror of
https://github.com/mainnika/nginx-auth-ldap.git
synced 2026-06-12 18:03:36 +00:00
Merge pull request #157 from i-rinat/remove-item-from-waiting-requests-queue
remove timedout request ctx's from waiting_requests queue
This commit is contained in:
@@ -1800,6 +1800,12 @@ ngx_http_auth_ldap_authenticate(ngx_http_request_t *r, ngx_http_auth_ldap_ctx_t
|
|||||||
if (ctx->c != NULL) {
|
if (ctx->c != NULL) {
|
||||||
ngx_http_auth_ldap_return_connection(ctx->c);
|
ngx_http_auth_ldap_return_connection(ctx->c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove ctx from waiting_requests queue if it was added.
|
||||||
|
if (ngx_queue_next(&ctx->queue)) {
|
||||||
|
ngx_queue_remove(&ctx->queue);
|
||||||
|
}
|
||||||
|
|
||||||
return NGX_ERROR;
|
return NGX_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user