In newSession (readconnroute.c) connect_dcb will create backend connection via backend_dcb->func.connect()
session_alloc will not start a newSession for the LISTENING socket In dcb.h void *data was added to keep protocol session data if the session is not started in accept(9 but later.
This commit is contained in:
@ -22,6 +22,7 @@
|
||||
|
||||
struct session;
|
||||
struct server;
|
||||
struct service;
|
||||
|
||||
/**
|
||||
* @file dcb.h The Descriptor Control Block
|
||||
@ -111,6 +112,8 @@ typedef struct dcb {
|
||||
DCBSTATS stats; /**< DCB related statistics */
|
||||
|
||||
struct dcb *next; /**< Next DCB in the chain of allocated DCB's */
|
||||
struct service *service; /**< The related service */
|
||||
void *data; /**< Specific client data */
|
||||
} DCB;
|
||||
|
||||
/* DCB states */
|
||||
|
Reference in New Issue
Block a user