[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.
At the moment it appears that the existing LDAP_OPT_TIMEOUT timeout is 
not used anywhere in the library. I think it would be appropriate to use 
this existing option for all of the requests instead of adding more 
timeout options.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support