title: Java LDAP bind response takes too long
body: <p>I have an application that uses LDAP and communicates in a server client way using Sun's jndi library. The problem is that when many connections are trying to be established at once I see a lot of failed connections because bind response is not sent in desired time interval. 
  Is there a way to enhance this?
  It is not unusual that there are >200 connections at once. Everything works OK until ~60 connections and after that it becomes too slow.</p>
  
  <p>P.S.There is no possibility to increase waiting time.</p>
  
  <p>Every connection is running in a separate thread like this:</p>
  
  <pre><code>    ...
      serverSocket = new ServerSocket(port);
      infinite loop:
      newSocket = serverSocket.accept();
      newSocket.setTcpNoDelay(true);
      Thread t = new Thread(/*runnable that does something*/);
      t.start();
  </code></pre>
  
  <p>Thanks!</p>