Only store established connections in the pool
If a connection has not been fully established (i.e. authentication has been completed) then it should not be considered as a connection pool candidate.
This commit is contained in:

committed by
Markus Mäkelä

parent
f7b8744460
commit
35de0c392f
@ -43,7 +43,10 @@ struct session;
|
||||
* close MaxScale close entry point for the socket
|
||||
* listen Create a listener for the protocol
|
||||
* auth Authentication entry point
|
||||
* session Session handling entry point
|
||||
* session Session handling entry point
|
||||
* auth_default Default authenticator name
|
||||
* connlimit Maximum connection limit
|
||||
* established Whether connection is fully established
|
||||
* @endverbatim
|
||||
*
|
||||
* This forms the "module object" for protocol modules within the gateway.
|
||||
@ -62,9 +65,10 @@ typedef struct mxs_protocol
|
||||
int32_t (*close)(struct dcb *);
|
||||
int32_t (*listen)(struct dcb *, char *);
|
||||
int32_t (*auth)(struct dcb *, struct server *, struct session *, GWBUF *);
|
||||
int32_t (*session)(struct dcb *, void *);
|
||||
int32_t (*session)(struct dcb *, void *); // TODO: remove this, not used
|
||||
char *(*auth_default)();
|
||||
int32_t (*connlimit)(struct dcb *, int limit);
|
||||
bool (*established)(struct dcb *);
|
||||
} MXS_PROTOCOL;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user