r16473@catbus: nickm | 2007-11-06 15:55:35 -0500

Increment MAX_ADDRS in evdns so as to be quite large.  This is not as good as a general solution, but it may be good enough for practical use.


svn:r479
This commit is contained in:
Nick Mathewson 2007-11-06 20:57:37 +00:00
parent d257a4c0d6
commit 81802bf98c
2 changed files with 2 additions and 1 deletions

View File

@ -36,3 +36,4 @@ Changes in current version:
o Begin using libtool's library versioning support correctly. If we don't mess up, this will more or less guarantee binaries linked against old versions of libevent continue working when we make changes to libevent that do not break backward compatibility. o Begin using libtool's library versioning support correctly. If we don't mess up, this will more or less guarantee binaries linked against old versions of libevent continue working when we make changes to libevent that do not break backward compatibility.
o Fix evhttp.h compilation when TAILQ_ENTRY is not defined. o Fix evhttp.h compilation when TAILQ_ENTRY is not defined.
o Small code cleanups in epoll_dispatch(). o Small code cleanups in epoll_dispatch().
o Increase the maximum number of addresses read from a packet in evdns to 32.

View File

@ -136,7 +136,7 @@ typedef unsigned int uint;
#define u16 uint16_t #define u16 uint16_t
#define u8 uint8_t #define u8 uint8_t
#define MAX_ADDRS 4 /* maximum number of addresses from a single packet */ #define MAX_ADDRS 32 /* maximum number of addresses from a single packet */
/* which we bother recording */ /* which we bother recording */
#define TYPE_A EVDNS_TYPE_A #define TYPE_A EVDNS_TYPE_A