Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
1ceed99b
Commit
1ceed99b
authored
Feb 15, 2003
by
Kurt Zeilenga
Browse files
readahead bad for streams
parent
0f440f89
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/open.c
View file @
1ceed99b
...
...
@@ -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_"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment