Github user jacksontj commented on a diff in the pull request: https://github.com/apache/trafficserver/pull/653#discussion_r65780659 --- Diff: iocore/hostdb/I_HostDBProcessor.h --- @@ -139,10 +138,49 @@ struct SRVInfo { unsigned int key; }; -struct HostDBInfo { +struct HostDBInfo: public RefCountObj { /** Internal IP address data. This is at least large enough to hold an IPv6 address. */ + + int iobuffer_index; + static HostDBInfo* alloc(int size=0) { + size += sizeof(HostDBInfo); + int iobuffer_index = iobuffer_size_to_index(size); --- End diff -- The size varies quite a bit based on size of hostname, and number of records. In my local testing of sizing its usually in the hundreds of bytes (simple single record is ~100 bytes -- and an RR with 2 responses is ~260 bytes)
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---