BUG/MEDIUM: mux_h1: Don't call h1_send if we subscribed().
authorOlivier Houchard <cognet@ci0.org>
Wed, 15 Jan 2020 18:13:32 +0000 (19:13 +0100)
committerOlivier Houchard <cognet@ci0.org>
Wed, 15 Jan 2020 18:13:32 +0000 (19:13 +0100)
commit68787ef70a2e0fe19d0ab753dab8ed5c90cb4398
tree9dd58053115a4b800e7a2eea9329c22a82aa707c
parent8602394040fa5754ce8159302a56d0d304b0a0c6
BUG/MEDIUM: mux_h1: Don't call h1_send if we subscribed().

In h1_snd_buf(), only attempt to call h1_send() if we haven't
already subscribed.
It makes no sense to do it if we subscribed, as we know we failed
to send before, and will create a useless call to sendto(), and
in 2.2, the call to raw_sock_from_buf() will disable polling if
it is enabled.

This should be backported to 2.2, 2.1, 2.0 and 1.9.
src/mux_h1.c