]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: proxy: remove last references to appsession
authorWilly Tarreau <w@1wt.eu>
Mon, 10 Aug 2015 17:15:14 +0000 (19:15 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 10 Aug 2015 17:42:30 +0000 (19:42 +0200)
The code entirely builds without using these elements, let's get rid
of them now.

include/proto/proxy.h
include/types/peers.h
include/types/proto_http.h
include/types/proxy.h

index a159d0134177c417143861a1e797743208b50877..2b649665e9ac09a8235ad744f8019b6945eda783 100644 (file)
@@ -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;
index 320e128c857a76dd2905a7fb44141944769ec50e..625321f63984bd90f74b3b46650e0b4aaf439949 100644 (file)
 #include <netinet/in.h>
 #include <arpa/inet.h>
 
-#include <common/appsession.h>
 #include <common/config.h>
 #include <common/mini-clist.h>
 #include <common/regex.h>
-#include <common/sessionhash.h>
 #include <common/tools.h>
 #include <eb32tree.h>
 
index 9b14f268f5bbf5fc74194557881539052b658ef7..088c74868091d9db5f53c67ac2b3b9db15bb2516 100644 (file)
@@ -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 */
 
index 37c2cb5a864c871a0450246490c3371c529fc008..ed0518adde9a0e72832672c98d5d97110cae8329 100644 (file)
 #include <netinet/in.h>
 #include <arpa/inet.h>
 
-#include <common/appsession.h>
 #include <common/chunk.h>
 #include <common/config.h>
 #include <common/mini-clist.h>
 #include <common/regex.h>
-#include <common/sessionhash.h>
 #include <common/tools.h>
 #include <eb32tree.h>
 #include <ebistree.h>
@@ -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 */