mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 22:28:41 -04:00
MEDIUM: applet: Forward <kip> to applets
For now, no applets are using the <kop> value when consuming data. At least, as far as I know. But it remains a good idea to keep the applet API compatible. So now, the <kip> of the opposite side is properly forwarded to applets.
This commit is contained in:
parent
4145a61101
commit
6a0fe6e460
2 changed files with 4 additions and 0 deletions
|
|
@ -834,6 +834,8 @@ struct task *task_run_applet(struct task *t, void *context, unsigned int state)
|
|||
|
||||
channel_check_idletimer(ic);
|
||||
|
||||
sc_ep_fwd_kip(sco, sc);
|
||||
|
||||
input = ic->total;
|
||||
output = co_data(oc);
|
||||
app->applet->fct(app);
|
||||
|
|
|
|||
|
|
@ -2247,6 +2247,8 @@ int sc_applet_send(struct stconn *sc)
|
|||
if (se_fl_test(sc->sedesc, SE_FL_ORPHAN))
|
||||
return 0;
|
||||
|
||||
sc_ep_fwd_kip(sco, sc);
|
||||
|
||||
/* TODO: Splicing is not supported, so it is not possible to have FF data stuck into the I/O buf */
|
||||
BUG_ON(sc_ep_have_ff_data(sc));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue