mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-22 20:32:12 +00:00
BUG/MEDIUM: h2: Don't forget to quit the sending_list if SUB_CALL_UNSUBSCRIBE.
In mux_h2_unsubscribe, don't forget to leave the sending_list if SUB_CALL_UNSUBSCRIBE was set. SUB_CALL_UNSUBSCRIBE means we were about to be woken up for writing, unless the mux was too full to get more data. If there's an unsubscribe call in the meanwhile, we should leave the list, or we may be put back in the send_list. This should be backported to 1.9.
This commit is contained in:
parent
15685c7912
commit
f29cd5c8a8
@ -4600,6 +4600,8 @@ static int h2_unsubscribe(struct conn_stream *cs, int event_type, void *param)
|
||||
if (h2s->send_wait == sw) {
|
||||
sw->events &= ~SUB_CALL_UNSUBSCRIBE;
|
||||
h2s->send_wait = NULL;
|
||||
LIST_DEL(&h2s->list);
|
||||
LIST_INIT(&h2s->list);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user