[Date Prev][Date Next]
Re: (ITS#3528) add time limit options for bind and exop requests
>Full_Name: Nalin Dahyabhai
>OS: Linux 2.6
>Submission from: (NULL) (18.104.22.168)
>If I'm reading the code right, all bind requests and exop requests issued by
>libldap are allowed to block indefinitely.
>In cases where a TCP connection to a server will succeed, but the server is
>unresponsive (one contrived example would be if the server were stopped by
>SIGSTOP), a client which connects and attempts a simple bind will block until
>the server responds, which may be never.
>Additional API-level options which influence this behavior on the client side
>could be useful for working around this scenario.
As a further comment - your patch alters the ldap_*_s functions. These
functions, by definition, are intended to block indefinitely. If you
want timeouts, I believe your code should be using the asynchronous
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
Symas: Premier OpenSource Development and Support