MXS-2196: Pass Listener into dcb_accept

Modified the functions to use a listener instead of a DCB in the accepting
process. This removes some of the dependenices that the listeners have on
the DCB system.
This commit is contained in:
Markus Mäkelä
2018-11-30 12:56:18 +02:00
parent 9c679edea6
commit ccc91df0c7
8 changed files with 26 additions and 25 deletions

View File

@ -352,7 +352,7 @@ static int maxscaled_accept(DCB* listener)
socklen_t len = sizeof(struct ucred);
struct ucred ucred;
while ((client_dcb = dcb_accept(listener)) != NULL)
while ((client_dcb = dcb_accept(listener->listener)) != NULL)
{
MAXSCALED* maxscaled_protocol = (MAXSCALED*)calloc(1, sizeof(MAXSCALED));