Home | History | Annotate | Download | only in slapd

Lines Matching refs:connections

55 static Connection *connections = NULL;
105 assert( connections == NULL );
107 if( connections != NULL) {
115 connections = (Connection *) ch_calloc( dtblsize, sizeof(Connection) );
117 if( connections == NULL ) {
125 connections[i].c_conn_idx = i;
126 ldap_pvt_thread_mutex_init( &connections[i].c_mutex );
127 ldap_pvt_thread_mutex_init( &connections[i].c_write1_mutex );
128 ldap_pvt_thread_cond_init( &connections[i].c_write1_cv );
150 if( connections == NULL) {
156 ldap_pvt_thread_mutex_destroy( &connections[i].c_mutex );
157 ldap_pvt_thread_mutex_destroy( &connections[i].c_write1_mutex );
158 ldap_pvt_thread_cond_destroy( &connections[i].c_write1_cv );
159 if( connections[i].c_sb ) {
160 ber_sockbuf_free( connections[i].c_sb );
164 &connections[i] );
170 free( connections );
171 connections = NULL;
178 * shutdown all connections
185 ldap_pvt_thread_mutex_lock( &connections[i].c_mutex );
186 if( connections[i].c_conn_state > SLAP_C_INVALID ) {
189 if( connections[i].c_conn_state == SLAP_C_CLIENT ) {
191 connections[i].c_clientfunc, connections[i].c_clientarg );
194 connection_closing( &connections[i], "slapd shutdown" );
195 connection_close( &connections[i] );
198 ldap_pvt_thread_mutex_unlock( &connections[i].c_mutex );
205 * Timeout idle connections.
239 /* Drop all client connections */
270 assert( connections != NULL );
275 c = &connections[s];
326 assert( connections != NULL );
344 c = &connections[s];
557 assert( connections != NULL );
596 assert( connections != NULL );
684 c = &connections[s];
770 assert( connections != NULL );
804 assert( connections != NULL );
830 assert( connections != NULL );
842 * Loop through the connections:
854 assert( connections != NULL );
858 if( connections[*index].c_sb ) {
869 assert( connections != NULL );
878 if( connections[*index].c_sb ) {
879 c = &connections[*index];
897 assert( connections != NULL );
1311 assert( connections != NULL );
1918 assert( connections != NULL );