MEDIUM: stream: don't try to send first in process_stream()
authorWilly Tarreau <w@1wt.eu>
Thu, 25 Oct 2018 08:42:39 +0000 (10:42 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 28 Oct 2018 12:47:00 +0000 (13:47 +0100)
commit0f8d3ab362e9d3050e4862688464642a05354ec8
treee03f4f6551c7a09cca0a90a88c75b3e9d9d366ca
parent18e066c2e7e6275d27383356c108cda0d17ad920
MEDIUM: stream: don't try to send first in process_stream()

The rationale here is that we should never need to try to send() at the
beginning of process_stream() because :
  - if something was pending, it's very unlikely that it was unblocked
    and not sent just between the last poll() and the wakeup instant.
  - if something pending was recently sent, then we don't have anything
    to send anymore.

So at first glance it doesn't seem like there could be any valid case
where trying to send before entering the function brings any benefit.
src/stream.c