[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#3528) add time limit options for bind and exop requests

nalin@redhat.com wrote:

>Full_Name: Nalin Dahyabhai
>Version: 2.2.23
>OS: Linux 2.6
>URL: http://people.redhat.com/nalin/test/openldap-2.2-timeouts.patch
>Submission from: (NULL) (
>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
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support