]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: shctx: use unsigned int for len and block_count
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 21 Nov 2017 19:01:25 +0000 (20:01 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 21 Nov 2017 20:35:04 +0000 (21:35 +0100)
Allows bigger objects to be cached in the shctx, the first
implementation was only storing small ssl session, but we want to store
bigger HTTP response.

include/types/shctx.h

index afef1a107c3c9e1464d04fbb94967546eae77450..559bebadb58e52fdf4d9dd63ec049a15fd81bb40 100644 (file)
@@ -21,8 +21,8 @@
 /* generic shctx struct */
 struct shared_block {
        struct list list;
-       short int len;          /* data length for the row */
-       short int block_count;  /* number of blocks */
+       unsigned int len;          /* data length for the row */
+       unsigned int block_count;  /* number of blocks */
        unsigned int refcount;
        unsigned char data[0];
 };