BUG/MINOR: server: Make SRV_STATE_LINE_MAXLEN value from 512 to 2kB (2000 bytes).

The statefile before this patch can only parse lines within 512
characters, now as we made the value to 2000, it can support a
line of length of 2kB.

This patch fixes GitHub issue #1530.
It should be backported to all stable releases.
This commit is contained in:
vigneshsp 2022-05-09 22:36:39 +05:30 committed by Willy Tarreau
parent 6d868a2c65
commit 47a4c61d63

View File

@ -132,7 +132,7 @@ enum srv_initaddr {
#define SRV_STATE_FILE_MAX_FIELDS 25
#define SRV_STATE_FILE_MIN_FIELDS_VERSION_1 20
#define SRV_STATE_FILE_MAX_FIELDS_VERSION_1 25
#define SRV_STATE_LINE_MAXLEN 512
#define SRV_STATE_LINE_MAXLEN 2000
/* server flags -- 32 bits */
#define SRV_F_BACKUP 0x0001 /* this server is a backup server */