X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fconnection.c;h=e34703cb384243b8e4bfc6b04e4069881e6118cf;hb=d8fc1039f011a6b48f7967e91ceccd77ad634afd;hp=7f9cd8adbf3713228220bd48f65062ce66f985cf;hpb=2e4580beaa358299ecb6bc8b920e40dfc373e969;p=openldap diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 7f9cd8adbf..e34703cb38 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -1,7 +1,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2012 The OpenLDAP Foundation. + * Copyright 1998-2013 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -574,6 +574,11 @@ Connection * connection_init( backend_connection_init(c); ldap_pvt_thread_mutex_unlock( &c->c_mutex ); + if ( !(flags & CONN_IS_UDP )) + Statslog( LDAP_DEBUG_STATS, + "conn=%ld fd=%ld ACCEPT from %s (%s)\n", + id, (long) s, peername, listener->sl_name.bv_val, 0 ); + return c; }