mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 18:18:06 -05:00
readahead bad for streams
This commit is contained in:
parent
0f440f8959
commit
1ceed99b8e
1 changed files with 5 additions and 4 deletions
|
|
@ -282,8 +282,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;
|
||||
|
||||
|
|
@ -308,6 +308,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:
|
||||
|
|
@ -333,9 +337,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