Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
063981a0
Commit
063981a0
authored
Nov 16, 2017
by
Ondřej Kuzník
Committed by
Ondřej Kuzník
Nov 17, 2020
Browse files
Respond to timeout events properly
parent
ccf75c96
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/lloadd/connection.c
View file @
063981a0
...
...
@@ -161,6 +161,14 @@ connection_read_cb( evutil_socket_t s, short what, void *arg )
return
;
}
if
(
what
&
EV_TIMEOUT
)
{
Debug
(
LDAP_DEBUG_CONNS
,
"connection_read_cb: "
"connid=%lu, timeout reached, destroying
\n
"
,
c
->
c_connid
);
CONNECTION_DESTROY
(
c
);
return
;
}
Debug
(
LDAP_DEBUG_CONNS
,
"connection_read_cb: "
"connection connid=%lu ready to read
\n
"
,
c
->
c_connid
);
...
...
@@ -246,6 +254,14 @@ connection_write_cb( evutil_socket_t s, short what, void *arg )
CONNECTION_UNLOCK
(
c
);
return
;
}
if
(
what
&
EV_TIMEOUT
)
{
Debug
(
LDAP_DEBUG_CONNS
,
"connection_write_cb: "
"connid=%lu, timeout reached, destroying
\n
"
,
c
->
c_connid
);
CONNECTION_DESTROY
(
c
);
return
;
}
CONNECTION_UNLOCK_INCREF
(
c
);
/* Before we acquire any locks */
...
...
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