From f0f29cd82ee8b600c838ad8a69d997ac3571c79f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julio=20S=C3=A1nchez=20Fern=C3=A1ndez?= Date: Wed, 21 Jul 1999 13:22:35 +0000 Subject: [PATCH] Backout the input exhaustion change, it loops. Still looking for the right way. --- servers/slapd/connection.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index a1e4a05811..a5476ad0b3 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -817,11 +817,12 @@ int connection_read(ber_socket_t s) #define CONNECTION_INPUT_LOOP 1 #ifdef DATA_READY_LOOP - while(rc >= 0 && ber_pvt_sb_data_ready(&c->c_sb)) + while(!rc && ber_pvt_sb_data_ready(&c->c_sb)) #elif CONNECTION_INPUT_LOOP - while(rc >= 0) + while(!rc) #endif { + /* How do we do this without getting into a busy loop ? */ rc = connection_input( c ); } -- 2.39.5