]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: connection: use a generic data-layer init() callback
authorWilly Tarreau <w@1wt.eu>
Tue, 2 Oct 2012 23:39:48 +0000 (01:39 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 4 Oct 2012 20:26:10 +0000 (22:26 +0200)
commit071e137ec23402b0c4c3cb1a5967c483f34a9270
tree8a5e0ac408b10d986cf9abc92f2b0b88efa72c8e
parent5e75e2755e413f3d5d01b7c53c4856346de69af0
MEDIUM: connection: use a generic data-layer init() callback

The generic data-layer init callback is now used after the transport
layer is complete and before calling the data layer recv/send callbacks.

This allows the session to switch from the embryonic session data layer
to the complete stream interface data layer, by making conn_session_complete()
the data layer's init callback.

It sill looks awkwards that the init() callback must be used opon error,
but except by adding yet another one, it does not seem to be mergeable
into another function (eg: it should probably not be merged with ->wake
to avoid unneeded calls during the handshake, though semantically that
would make sense).
include/proto/session.h
include/types/connection.h
src/connection.c
src/session.c