From: Willy Tarreau Date: Mon, 10 Aug 2015 17:15:14 +0000 (+0200) Subject: CLEANUP: proxy: remove last references to appsession X-Git-Tag: v1.6-dev4~90 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3580b03fc07f9a7003fd1fec7fa70d75637cb354;p=thirdparty%2Fhaproxy.git CLEANUP: proxy: remove last references to appsession The code entirely builds without using these elements, let's get rid of them now. --- diff --git a/include/proto/proxy.h b/include/proto/proxy.h index a159d01341..2b649665e9 100644 --- a/include/proto/proxy.h +++ b/include/proto/proxy.h @@ -98,7 +98,6 @@ static inline void proxy_reset_timeouts(struct proxy *proxy) proxy->timeout.queue = TICK_ETERNITY; proxy->timeout.connect = TICK_ETERNITY; proxy->timeout.server = TICK_ETERNITY; - proxy->timeout.appsession = TICK_ETERNITY; proxy->timeout.httpreq = TICK_ETERNITY; proxy->timeout.check = TICK_ETERNITY; proxy->timeout.tunnel = TICK_ETERNITY; diff --git a/include/types/peers.h b/include/types/peers.h index 320e128c85..625321f639 100644 --- a/include/types/peers.h +++ b/include/types/peers.h @@ -27,11 +27,9 @@ #include #include -#include #include #include #include -#include #include #include diff --git a/include/types/proto_http.h b/include/types/proto_http.h index 9b14f268f5..088c748680 100644 --- a/include/types/proto_http.h +++ b/include/types/proto_http.h @@ -502,7 +502,6 @@ struct http_txn { char *uri; /* first line if log needed, NULL otherwise */ char *cli_cookie; /* cookie presented by the client, in capture mode */ char *srv_cookie; /* cookie presented by the server, in capture mode */ - char *sessid; /* the appsession id, if found in the request or in the response */ int cookie_first_date; /* if non-zero, first date the expirable cookie was set/seen */ int cookie_last_date; /* if non-zero, last date the expirable cookie was set/seen */ diff --git a/include/types/proxy.h b/include/types/proxy.h index 37c2cb5a86..ed0518adde 100644 --- a/include/types/proxy.h +++ b/include/types/proxy.h @@ -27,12 +27,10 @@ #include #include -#include #include #include #include #include -#include #include #include #include @@ -136,14 +134,8 @@ enum pr_mode { #define PR_O2_INDEPSTR 0x00001000 /* independent streams, don't update rex on write */ #define PR_O2_SOCKSTAT 0x00002000 /* collect & provide separate statistics for sockets */ -/* appsession */ -#define PR_O2_AS_REQL 0x00004000 /* learn the session id from the request */ -#define PR_O2_AS_PFX 0x00008000 /* match on the cookie prefix */ +/* unused: 0x00004000 0x00008000 0x00010000 */ -/* Encoding of appsession cookie matching modes : 2 possible values => 1 bit */ -#define PR_O2_AS_M_PP 0x00000000 /* path-parameters mode (the default mode) */ -#define PR_O2_AS_M_QS 0x00010000 /* query-string mode */ -#define PR_O2_AS_M_ANY 0x00010000 /* mask covering all PR_O2_AS_M_* values */ #define PR_O2_NODELAY 0x00020000 /* fully interactive mode, never delay outgoing data */ #define PR_O2_USE_PXHDR 0x00040000 /* use Proxy-Connection for proxy requests */ #define PR_O2_CHK_SNDST 0x00080000 /* send the state of each server along with HTTP health checks */ @@ -291,10 +283,6 @@ struct proxy { char *hh_name; /* name of the header parameter used for hashing */ int hh_len; /* strlen(hh_name), computed only once */ int hh_match_domain; /* toggle use of special match function */ - char *appsession_name; /* name of the cookie to look for */ - int appsession_name_len; /* strlen(appsession_name), computed only once */ - int appsession_len; /* length of the appsession cookie value to be used */ - struct appsession_hash htbl_proxy; /* Per Proxy hashtable */ char *capture_name; /* beginning of the name of the cookie to capture */ int capture_namelen; /* length of the cookie name to match */ int capture_len; /* length of the string to be captured */ @@ -309,7 +297,6 @@ struct proxy { int queue; /* queue timeout, defaults to connect if unspecified */ int connect; /* connect timeout (in ticks) */ int server; /* server I/O timeout (in ticks) */ - int appsession; /* appsession cookie expiration */ int httpreq; /* maximum time for complete HTTP request */ int httpka; /* maximum time for a new HTTP request when using keep-alive */ int check; /* maximum time for complete check */