~ubuntu-branches/debian/stretch/haproxy/stretch

« back to all changes in this revision

Viewing changes to include/types/proxy.h

  • Committer: Bazaar Package Importer
  • Author(s): Christo Buschek
  • Date: 2011-03-11 12:41:59 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20110311124159-9foyp4juf1ilqipo
Tags: 1.4.13-1
* New maintainer upload (Closes: #615246)
* New upstream release
* Standards-version goes 3.9.1 (no change)
* Added patch bashism (Closes: #581109)
* Added a README.source file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
139
139
#define PR_O2_CHK_SNDST 0x00080000      /* send the state of each server along with HTTP health checks */
140
140
#define PR_O2_SSL3_CHK  0x00100000      /* use SSLv3 CLIENT_HELLO packets for server health */
141
141
#define PR_O2_FAKE_KA   0x00200000      /* pretend we do keep-alive with server eventhough we close */
 
142
#define PR_O2_LDAP_CHK  0x00400000      /* use LDAP check for server health */
 
143
 
 
144
#define PR_O2_EXP_NONE  0x00000000      /* http-check : no expect rule */
 
145
#define PR_O2_EXP_STS   0x00800000      /* http-check expect status */
 
146
#define PR_O2_EXP_RSTS  0x01000000      /* http-check expect rstatus */
 
147
#define PR_O2_EXP_STR   0x01800000      /* http-check expect string */
 
148
#define PR_O2_EXP_RSTR  0x02000000      /* http-check expect rstring */
 
149
#define PR_O2_EXP_TYPE  0x03800000      /* mask for http-check expect type */
 
150
#define PR_O2_EXP_INV   0x04000000      /* http-check expect !<rule> */
 
151
#define PR_O2_COOK_PSV  0x08000000      /* cookie ... preserve */
142
152
/* end of proxy->options2 */
143
153
 
144
154
/* bits for sticking rules */
151
161
        unsigned int len;               /* original length of the last invalid request/response */
152
162
        unsigned int pos;               /* position of the first invalid character */
153
163
        unsigned int sid;               /* ID of the faulty session */
 
164
        unsigned int ev_id;             /* event number (counter incremented for each capture) */
 
165
        unsigned int state;             /* message state before the error (when saved) */
 
166
        unsigned int flags;             /* buffer flags */
154
167
        struct server *srv;             /* server associated with the error (or NULL) */
155
168
        struct proxy *oe;               /* other end = frontend or backend involved */
156
169
        struct sockaddr_storage src;    /* client's address */
190
203
        char *cookie_domain;                    /* domain used to insert the cookie */
191
204
        char *cookie_name;                      /* name of the cookie to look for */
192
205
        int  cookie_len;                        /* strlen(cookie_name), computed only once */
 
206
        unsigned int cookie_maxidle;            /* max idle time for this cookie */
 
207
        unsigned int cookie_maxlife;            /* max life time for this cookie */
193
208
        char *rdp_cookie_name;                  /* name of the RDP cookie to look for */
194
209
        int  rdp_cookie_len;                    /* strlen(rdp_cookie_name), computed only once */
195
210
        char *url_param_name;                   /* name of the URL parameter used for hashing */
279
294
        int grace;                              /* grace time after stop request */
280
295
        char *check_req;                        /* HTTP or SSL request to use for PR_O_HTTP_CHK|PR_O_SSL3_CHK */
281
296
        int check_len;                          /* Length of the HTTP or SSL3 request */
 
297
        char *expect_str;                       /* http-check expected content */
 
298
        regex_t *expect_regex;                  /* http-check expected content */
282
299
        struct chunk errmsg[HTTP_ERR_SIZE];     /* default or customized error messages for known errors */
283
300
        int uuid;                               /* universally unique proxy ID, used for SNMP */
284
301
        unsigned int backlog;                   /* force the frontend's listen backlog */
339
356
 
340
357
extern struct proxy *proxy;
341
358
extern struct eb_root used_proxy_id;    /* list of proxy IDs in use */
 
359
extern unsigned int error_snapshot_id;  /* global ID assigned to each error then incremented */
342
360
 
343
361
#endif /* _TYPES_PROXY_H */
344
362