Emmanuel Lecharny created DIRAPI-207:
----------------------------------------
Summary: Expose the underlying socket config
Key: DIRAPI-207
URL: https://issues.apache.org/jira/browse/DIRAPI-207
Project: Directory Client API
Issue Type: Improvement
Affects Versions: 1.0.0-M24
Reporter: Emmanuel Lecharny
Fix For: 1.0.0-RC1
Currently, we open a new connection with the default socket configuration :
{code}
public boolean connect() throws LdapException
{
if ( ( ldapSession != null ) && connected.get() )
{
// No need to connect if we already have a connected session
return true;
}
// Create the connector if needed
if ( connector == null )
{
// Use only one thead inside the connector
connector = new NioSocketConnector( 1 );
...
{code}
We should allow a user to pass some configuration parameter, for instead, the
SO_LINGER config.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)