Initial changes for persistent connections - add some basic functionality.

This commit is contained in:
counterpoint
2015-05-20 18:15:11 +01:00
parent 492918c72c
commit 6f31357372
4 changed files with 76 additions and 1 deletions

View File

@ -249,6 +249,7 @@ typedef struct dcb {
DCBSTATS stats; /**< DCB related statistics */
unsigned int dcb_server_status; /*< the server role indicator from SERVER */
struct dcb *next; /**< Next DCB in the chain of allocated DCB's */
struct dcb *nextpersistent; /**< Next DCB in the persistent pool for SERVER */
struct service *service; /**< The related service */
void *data; /**< Specific client data */
DCBMM memdata; /**< The data related to DCB memory management */
@ -261,7 +262,7 @@ typedef struct dcb {
SPINLOCK polloutlock;
int polloutbusy;
int writecheck;
unsigned long last_read; /*< Last time the DCB received data */
unsigned long last_read; /*< Last time the DCB received data */
unsigned int high_water; /**< High water mark */
unsigned int low_water; /**< Low water mark */
struct server *server; /**< The associated backend server */