]> git.sur5r.net Git - openldap/commitdiff
label io as "ldap_"
authorKurt Zeilenga <kurt@openldap.org>
Sat, 14 Oct 2000 00:12:39 +0000 (00:12 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 14 Oct 2000 00:12:39 +0000 (00:12 +0000)
servers/slapd/connection.c

index 700f384f5dd831624a50fe4f6ebae3db11bf8440..a719924e2c570596690d3131bcd1fe3f119c8a8a 100644 (file)
@@ -426,19 +426,27 @@ long connection_init(
 
     c->c_activitytime = c->c_starttime = slap_get_time();
 
-    ber_sockbuf_add_io( c->c_sb, &ber_sockbuf_io_tcp, LBER_SBIOD_LEVEL_PROVIDER,
-       (void *)&s );
-    ber_sockbuf_add_io( c->c_sb, &ber_sockbuf_io_readahead,
-       LBER_SBIOD_LEVEL_PROVIDER, NULL );
 #ifdef LDAP_DEBUG
-    ber_sockbuf_add_io( c->c_sb, &ber_sockbuf_io_debug, INT_MAX, NULL );
+       ber_sockbuf_add_io( c->c_sb, &ber_sockbuf_io_debug,
+               LBER_SBIOD_LEVEL_PROVIDER, (void*)"tcp_" );
+#endif
+       ber_sockbuf_add_io( c->c_sb, &ber_sockbuf_io_tcp,
+               LBER_SBIOD_LEVEL_PROVIDER, (void *)&s );
+       ber_sockbuf_add_io( c->c_sb, &ber_sockbuf_io_readahead,
+               LBER_SBIOD_LEVEL_PROVIDER, NULL );
+
+#ifdef LDAP_DEBUG
+       ber_sockbuf_add_io( c->c_sb, &ber_sockbuf_io_debug,
+               INT_MAX, (void*)"ldap_" );
 #endif
-    if( ber_sockbuf_ctrl( c->c_sb, LBER_SB_OPT_SET_NONBLOCK, c /* non-NULL */ ) < 0 ) {
-        Debug( LDAP_DEBUG_ANY,
-            "connection_init(%d, %s): set nonblocking failed\n",
-            s, c->c_peer_name, 0 );
-    }
 
+       if( ber_sockbuf_ctrl( c->c_sb, LBER_SB_OPT_SET_NONBLOCK,
+               c /* non-NULL */ ) < 0 )
+       {
+               Debug( LDAP_DEBUG_ANY,
+                       "connection_init(%d, %s): set nonblocking failed\n",
+                       s, c->c_peer_name, 0 );
+       }
 
     id = c->c_connid = conn_nextid++;