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:
@ -209,7 +209,8 @@ int i;
|
||||
* Open a backend connection, putting the DCB for this
|
||||
* connection in the client->dcb
|
||||
*/
|
||||
//client->dcb = backend_connect(session);
|
||||
|
||||
client->dcb = connect_dcb(candidate->server, session, candidate->server->protocol);
|
||||
|
||||
/* Add this session to the list of active sessions */
|
||||
spinlock_acquire(&inst->lock);
|
||||
|
Reference in New Issue
Block a user