]> git.sur5r.net Git - openldap/commitdiff
Backout the input exhaustion change, it loops. Still looking for
authorJulio Sánchez Fernández <jsanchez@openldap.org>
Wed, 21 Jul 1999 13:22:35 +0000 (13:22 +0000)
committerJulio Sánchez Fernández <jsanchez@openldap.org>
Wed, 21 Jul 1999 13:22:35 +0000 (13:22 +0000)
the right way.

servers/slapd/connection.c

index a1e4a05811c5d8783a6f04c724dc40d83d94136d..a5476ad0b3022e9588698d6323cbfbdd06c5c479 100644 (file)
@@ -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 );
        }