mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-22 23:02:34 -04:00
MINOR: mux-h2: Rely on h2s_notify_send() when resuming h2s for sending
In h2_resume_each_sending_h2s(), there was exactly the same code than h2s_notify_send(). So let's use h2s_notify_send() instead of duplicating code.
This commit is contained in:
parent
7abb7c4c79
commit
aea0d38fdd
1 changed files with 1 additions and 10 deletions
11
src/mux_h2.c
11
src/mux_h2.c
|
|
@ -4689,16 +4689,7 @@ static void h2_resume_each_sending_h2s(struct h2c *h2c, struct list *head)
|
|||
continue;
|
||||
}
|
||||
|
||||
if (h2s->subs && h2s->subs->events & SUB_RETRY_SEND) {
|
||||
h2s->flags |= H2_SF_NOTIFIED;
|
||||
tasklet_wakeup(h2s->subs->tasklet);
|
||||
h2s->subs->events &= ~SUB_RETRY_SEND;
|
||||
if (!h2s->subs->events)
|
||||
h2s->subs = NULL;
|
||||
}
|
||||
else if (h2s->flags & (H2_SF_WANT_SHUTR|H2_SF_WANT_SHUTW)) {
|
||||
tasklet_wakeup(h2s->shut_tl);
|
||||
}
|
||||
h2s_notify_send(h2s);
|
||||
}
|
||||
|
||||
TRACE_LEAVE(H2_EV_H2C_SEND|H2_EV_H2S_WAKE, h2c->conn);
|
||||
|
|
|
|||
Loading…
Reference in a new issue