Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ingo Voss
OpenLDAP
Commits
abce5abf
Commit
abce5abf
authored
May 04, 2001
by
Kurt Zeilenga
Browse files
Quick sb_max_incoming hack, should be configurable (likely
with differing anonymous vs authenticated values).
parent
61d874af
Changes
2
Hide whitespace changes
Inline
Side-by-side
servers/slapd/connection.c
View file @
abce5abf
...
...
@@ -404,33 +404,39 @@ long connection_init(
assert
(
c
!=
NULL
);
if
(
c
->
c_struct_state
==
SLAP_C_UNINITIALIZED
)
{
if
(
c
->
c_struct_state
==
SLAP_C_UNINITIALIZED
)
{
c
->
c_authmech
=
NULL
;
c
->
c_dn
=
NULL
;
c
->
c_cdn
=
NULL
;
c
->
c_dn
=
NULL
;
c
->
c_cdn
=
NULL
;
c
->
c_listener_url
=
NULL
;
c
->
c_peer_domain
=
NULL
;
c
->
c_peer_name
=
NULL
;
c
->
c_sock_name
=
NULL
;
c
->
c_peer_name
=
NULL
;
c
->
c_sock_name
=
NULL
;
c
->
c_ops
=
NULL
;
c
->
c_pending_ops
=
NULL
;
c
->
c_ops
=
NULL
;
c
->
c_pending_ops
=
NULL
;
c
->
c_sasl_bind_mech
=
NULL
;
c
->
c_sasl_context
=
NULL
;
c
->
c_sasl_extra
=
NULL
;
c
->
c_sb
=
ber_sockbuf_alloc
(
);
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 */
ldap_pvt_thread_mutex_init
(
&
c
->
c_mutex
);
ldap_pvt_thread_mutex_init
(
&
c
->
c_write_mutex
);
ldap_pvt_thread_cond_init
(
&
c
->
c_write_cv
);
/* should check status of thread calls */
ldap_pvt_thread_mutex_init
(
&
c
->
c_mutex
);
ldap_pvt_thread_mutex_init
(
&
c
->
c_write_mutex
);
ldap_pvt_thread_cond_init
(
&
c
->
c_write_cv
);
c
->
c_struct_state
=
SLAP_C_UNUSED
;
}
c
->
c_struct_state
=
SLAP_C_UNUSED
;
}
ldap_pvt_thread_mutex_lock
(
&
c
->
c_mutex
);
...
...
@@ -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
;
}
...
...
servers/slapd/slap.h
View file @
abce5abf
...
...
@@ -58,6 +58,7 @@ LDAP_BEGIN_DECL
#define MAXREMATCHES 10
#define SLAP_MAX_INCOMING (1<<18 - 1)
#define SLAP_MAX_WORKER_THREADS 32
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment