MINOR: dns: wrong DNS_MAX_UDP_MESSAGE value

Current implementation of HAProxy's DNS resolution expect only 512 bytes
of data in the response.
Update DNS_MAX_UDP_MESSAGE to match this.

Backport: can be backported to 1.6
This commit is contained in:
Baptiste Assmann 2016-03-26 15:09:48 +01:00 committed by Willy Tarreau
parent 7819c125c2
commit d20bbaf093

View File

@ -30,7 +30,7 @@
*/
#define DNS_MAX_LABEL_SIZE 63
#define DNS_MAX_NAME_SIZE 255
#define DNS_MAX_UDP_MESSAGE 4096
#define DNS_MAX_UDP_MESSAGE 512
/* DNS error messages */
#define DNS_TOO_LONG_FQDN "hostname too long"