Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
James Lowden
OpenLDAP
Commits
d4f7537b
Commit
d4f7537b
authored
Jan 08, 2021
by
Ondřej Kuzník
Committed by
Quanah Gibson-Mount
May 10, 2021
Browse files
ITS#8747 Avoid epoch recursion in connection_write_cb
parent
3d63696e
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/lloadd/connection.c
View file @
d4f7537b
...
...
@@ -322,7 +322,10 @@ connection_write_cb( evutil_socket_t s, short what, void *arg )
return
;
}
epoch
=
epoch_join
();
/* If what == 0, we have a caller as opposed to being a callback */
if
(
what
)
{
epoch
=
epoch_join
();
}
checked_lock
(
&
c
->
c_io_mutex
);
Debug
(
LDAP_DEBUG_CONNS
,
"connection_write_cb: "
...
...
@@ -369,7 +372,9 @@ connection_write_cb( evutil_socket_t s, short what, void *arg )
done:
RELEASE_REF
(
c
,
c_refcnt
,
c
->
c_destroy
);
epoch_leave
(
epoch
);
if
(
what
)
{
epoch_leave
(
epoch
);
}
}
void
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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