Willy Tarreau 8e3c6ce75a MEDIUM: connection: get rid of data->init() which was not for data
The ->init() callback of the connection's data layer was only used to
complete the session's initialisation since sessions and streams were
split apart in 1.6. The problem is that it creates a big confusion in
the layers' roles as the session has to register a dummy data layer
when waiting for a handshake to complete, then hand it off to the
stream which will replace it.

The real need is to notify that the transport has finished initializing.
This should enable a better splitting between these layers.

This patch thus introduces a connection-specific callback called
xprt_done_cb() which informs about handshake successes or failures. With
this, data->init() can disappear, CO_FL_INIT_DATA as well, and we don't
need to register a dummy data->wake() callback to be notified of errors.
2017-08-30 07:04:04 +02:00
..
2017-01-06 11:57:44 +01:00
2017-06-02 11:06:36 +02:00
2009-01-25 13:49:53 +01:00
2017-04-28 18:58:11 +02:00
2017-08-09 16:32:49 +02:00
2017-08-09 16:32:49 +02:00
2017-03-14 11:14:03 +01:00
2017-06-27 14:38:02 +02:00