mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 02:59:34 -05:00
Only install readahead layer when connectionless as
streams as streams may block.
This commit is contained in:
parent
619f9a72ec
commit
8ca394496b
1 changed files with 5 additions and 4 deletions
|
|
@ -286,8 +286,8 @@ ldap_int_open_connection(
|
|||
sasl_host = ldap_host_connected_to( conn->lconn_sb );
|
||||
#endif
|
||||
break;
|
||||
#ifdef LDAP_CONNECTIONLESS
|
||||
|
||||
#ifdef LDAP_CONNECTIONLESS
|
||||
case LDAP_PROTO_UDP:
|
||||
port = srv->lud_port;
|
||||
|
||||
|
|
@ -312,6 +312,10 @@ ldap_int_open_connection(
|
|||
#endif
|
||||
ber_sockbuf_add_io( conn->lconn_sb, &ber_sockbuf_io_udp,
|
||||
LBER_SBIOD_LEVEL_PROVIDER, NULL );
|
||||
|
||||
ber_sockbuf_add_io( conn->lconn_sb, &ber_sockbuf_io_readahead,
|
||||
LBER_SBIOD_LEVEL_PROVIDER, NULL );
|
||||
|
||||
break;
|
||||
#endif
|
||||
case LDAP_PROTO_IPC:
|
||||
|
|
@ -337,9 +341,6 @@ ldap_int_open_connection(
|
|||
break;
|
||||
}
|
||||
|
||||
ber_sockbuf_add_io( conn->lconn_sb, &ber_sockbuf_io_readahead,
|
||||
LBER_SBIOD_LEVEL_PROVIDER, NULL );
|
||||
|
||||
#ifdef LDAP_DEBUG
|
||||
ber_sockbuf_add_io( conn->lconn_sb, &ber_sockbuf_io_debug,
|
||||
INT_MAX, (void *)"ldap_" );
|
||||
|
|
|
|||
Loading…
Reference in a new issue