mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-19 01:54:37 +00:00
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:
parent
6d868a2c65
commit
47a4c61d63
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user