mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-15 16:01:02 +01:00
MINOR: stream-int: Handle appctx case first when releasing the endpoint
Stream-interfaces will be moved in the conn-stream and the appctx will be moved at the same level than the muxes. Idea is to merge the stream-interface and the conn-stream and have a better symmetry between the muxes and the applets. To limit bugs during this refactoring, when the SI endpoint is released, the appctx case is handled first.
This commit is contained in:
parent
274716262b
commit
719ceef79c
@ -177,17 +177,17 @@ static inline void si_release_endpoint(struct stream_interface *si)
|
||||
if (!si->end)
|
||||
return;
|
||||
|
||||
if ((cs = objt_cs(si->end))) {
|
||||
if ((appctx = objt_appctx(si->end))) {
|
||||
if (appctx->applet->release && !si_state_in(si->state, SI_SB_DIS|SI_SB_CLO))
|
||||
appctx->applet->release(appctx);
|
||||
appctx_free(appctx);
|
||||
}
|
||||
else if ((cs = objt_cs(si->end))) {
|
||||
if (si->wait_event.events != 0)
|
||||
cs->conn->mux->unsubscribe(cs, si->wait_event.events,
|
||||
&si->wait_event);
|
||||
cs_destroy(cs);
|
||||
}
|
||||
else if ((appctx = objt_appctx(si->end))) {
|
||||
if (appctx->applet->release && !si_state_in(si->state, SI_SB_DIS|SI_SB_CLO))
|
||||
appctx->applet->release(appctx);
|
||||
appctx_free(appctx);
|
||||
}
|
||||
si_detach_endpoint(si);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user