mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Quick sb_max_incoming hack, should be configurable (likely
with differing anonymous vs authenticated values).
This commit is contained in:
parent
61d874af10
commit
abce5abf34
@ -422,6 +422,12 @@ long connection_init(
|
||||
c->c_sasl_extra = NULL;
|
||||
|
||||
c->c_sb = ber_sockbuf_alloc( );
|
||||
|
||||
{
|
||||
ber_len_t max = SLAP_MAX_INCOMING;
|
||||
ber_sockbuf_ctrl( c->c_sb, LBER_SB_OPT_SET_MAX_INCOMING, &max );
|
||||
}
|
||||
|
||||
c->c_currentber = NULL;
|
||||
|
||||
/* should check status of thread calls */
|
||||
@ -625,8 +631,14 @@ connection_destroy( Connection *c )
|
||||
}
|
||||
|
||||
ber_sockbuf_free( c->c_sb );
|
||||
|
||||
c->c_sb = ber_sockbuf_alloc( );
|
||||
|
||||
{
|
||||
ber_len_t max = SLAP_MAX_INCOMING;
|
||||
ber_sockbuf_ctrl( c->c_sb, LBER_SB_OPT_SET_MAX_INCOMING, &max );
|
||||
}
|
||||
|
||||
c->c_conn_state = SLAP_C_INVALID;
|
||||
c->c_struct_state = SLAP_C_UNUSED;
|
||||
}
|
||||
|
@ -58,6 +58,7 @@ LDAP_BEGIN_DECL
|
||||
|
||||
#define MAXREMATCHES 10
|
||||
|
||||
#define SLAP_MAX_INCOMING (1<<18 - 1)
|
||||
#define SLAP_MAX_WORKER_THREADS 32
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user