kvspb / nginx-auth-ldap

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

Concurrent Connections keep growing #186

Open fean5959a opened 6 years ago

fean5959a commented 6 years ago

I used Nginx 1.12.1

nginx version: nginx/1.12.1 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) built with OpenSSL 1.0.1e-fips 11 Feb 2013 TLS SNI support enabled

And I compiled it with code that use Merge pull request #169 to correct error : http_auth_ldap: ldap_result() failed (-1: Can't contact LDAP server)

But I detect a problem with connections writing. I used limit_req / limit_conn and connections_writing keep growing when max_down_retries > (ex: 5 for me).

Can you find and correct this bug please. Connections Writing grows slowly or depend of your traffic. For me I have 8 requests/sec and in 2 hours connections_writing go from 3 to 30 !

Regards