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
ingo Voss
OpenLDAP
Commits
6cf86c59
Commit
6cf86c59
authored
Dec 12, 2002
by
Kurt Zeilenga
Browse files
Use data ready loop
parent
cc9697b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/connection.c
View file @
6cf86c59
...
...
@@ -1221,17 +1221,21 @@ int connection_read(ber_socket_t s)
}
#endif
#define CONNECTION_INPUT_LOOP 1
/* #define CONNECTION_INPUT_LOOP 1 */
#define DATA_READY_LOOP 1
#ifdef DATA_READY_LOOP
while
(
!
rc
&&
ber_sockbuf_ctrl
(
c
->
c_sb
,
LBER_SB_DATA_READY
,
NULL
)
)
#elif CONNECTION_INPUT_LOOP
while
(
!
rc
)
#endif
do
{
/* How do we do this without getting into a busy loop ? */
rc
=
connection_input
(
c
);
}
#ifdef DATA_READY_LOOP
while
(
!
rc
&&
ber_sockbuf_ctrl
(
c
->
c_sb
,
LBER_SB_OPT_DATA_READY
,
NULL
)
);
#elif CONNECTION_INPUT_LOOP
while
(
!
rc
);
#else
while
(
0
);
#endif
if
(
rc
<
0
)
{
#ifdef NEW_LOGGING
...
...
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