]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG/MEDIUM: channel: only use chn_prod / chn_cons to find stream-interfaces
authorWilly Tarreau <w@1wt.eu>
Fri, 28 Nov 2014 13:10:28 +0000 (14:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 11 Mar 2015 19:41:47 +0000 (20:41 +0100)
commit73796535a98824ea38329a2504ffa81a9726c009
tree68a3a293009a2981b953d94c33788695a376c899
parent50fe03be781e5c4bedf7b1ca3a190e7f87828d71
REORG/MEDIUM: channel: only use chn_prod / chn_cons to find stream-interfaces

The purpose of these two macros will be to pass via the session to
find the relevant stream interfaces so that we don't need to store
the ->cons nor ->prod pointers anymore. Currently they're only defined
so that all references could be removed.

Note that many places need a second pass of clean up so that we don't
have any chn_prod(&s->req) anymore and only &s->si[0] instead, and
conversely for the 3 other cases.
include/proto/channel.h
src/backend.c
src/hlua.c
src/log.c
src/proto_http.c
src/proto_tcp.c
src/session.c