]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mux-h1: Revamp the way subscriptions are handled.
authorOlivier Houchard <ohouchard@haproxy.com>
Mon, 3 Dec 2018 17:46:09 +0000 (18:46 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 4 Dec 2018 15:43:30 +0000 (16:43 +0100)
commit75159a96deb0a08e76be84215344d02071d1cfca
treef4bf3e36afc9631733806793818fc80a5d2ed81c
parentc490efd625921f3fe71c591a54170b99c4db2f76
MEDIUM: mux-h1: Revamp the way subscriptions are handled.

Don't always wake the tasklets subscribed to recv or send events as soon as
we had any I/O event, and don't call the wake() method if there were no
subscription, instead, wake the recv tasklet if we received data in h2_recv(),
and wake the send tasklet if we were able to send data in h2_send(), and the
buffer is not full anymore.
Only call the data_cb->wake() method if we get an error/a read 0, just in
case the stream was not subscribed to receive events.
src/mux_h1.c