kvspb / nginx-auth-ldap

LDAP authentication module for nginx
BSD 2-Clause "Simplified" License
731 stars 251 forks source link

Not insert the same request at ngx_http_auth_ldap_get_connection() #147

Closed eramoto closed 7 years ago

eramoto commented 7 years ago

When inserting the same request to waiting_requests queue twice, the queue will be broken. In addition, the following segmentation fault occurs at the second ngx_http_auth_ldap_return_connection() if the nginx binary was compiled with --with-debug. Related issues: #104 #132 #143

By this fix, ngx_http_auth_ldap_get_connection() will not insert the same request.

eholzbach commented 7 years ago

@eramoto I hit this bug. Redeployed with your commit, worker process segfaults stopped. Thanks!

mfulz commented 7 years ago

Thanks your patch is working perfectly for me.

fpeterschmitt commented 7 years ago

The patch seems to be working great as well here: cluster of two nginx 1.10.1 reverse proxy, reproducable segfaults stopped. Thanks!

alexander-gridnev commented 7 years ago

Thanks, patch works for me! Have no segfaults since applying it.