]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stream interface: move the peers' ptr into the applet context
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Oct 2013 18:44:19 +0000 (20:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 9 Dec 2013 14:40:22 +0000 (15:40 +0100)
commitf4acee332bc08008cf38083d6cc17800309b9398
treef61af7ca707abe1ac748ba61c5a19eea7d4ab89f
parent1e6902fd6a4935b36a1dc4ab36ce50757b407a20
MEDIUM: stream interface: move the peers' ptr into the applet context

A long time ago when peers were introduced, there was no applet nor
applet context. Applet contexts were introduced but the peers still
did not make use of them and the "ptr" pointer remains present in
every stream interface in addition to the other contexts.

Simply move this pointer to its own location in the context.

Note that this pointer is still a void* because its type and contents
varies depending on the peers session state. Probably that this could
be cleaned up in the future given that all other contexts already store
much more than a single pointer.
include/types/stream_interface.h
src/peers.c