#include <HttpTransact.h>
Public Types | |
enum | { OS_ADDR_TRY_DEFAULT, OS_ADDR_TRY_HOSTDB, OS_ADDR_TRY_CLIENT, OS_ADDR_USE_HOSTDB, OS_ADDR_USE_CLIENT } |
Origin server address source selection. More... | |
Public Member Functions | |
_DNSLookupInfo () | |
Data Fields | |
int | attempts |
enum HttpTransact::_DNSLookupInfo:: { ... } | os_addr_style |
Origin server address source selection. | |
bool | lookup_success |
char * | lookup_name |
char | srv_hostname [MAXDNAME] |
LookingUp_t | looking_up |
bool | srv_lookup_success |
short | srv_port |
HostDBApplicationInfo | srv_app |
bool | lookup_validated |
Definition at line 758 of file HttpTransact.h.
anonymous enum |
Origin server address source selection.
If config says to use CTA (client target addr) state is OS_ADDR_TRY_CLIENT, otherwise it remains the default. If the connect fails then we switch to a USE. We go to USE_HOSTDB if (1) the HostDB lookup is successful and (2) some address other than the CTA is available to try. Otherwise we keep retrying on the CTA (USE_CLIENT) up to the max retry value. In essence we try to treat the CTA as if it were another RR value in the HostDB record.
Definition at line 772 of file HttpTransact.h.
HttpTransact::_DNSLookupInfo::_DNSLookupInfo | ( | ) | [inline] |
Definition at line 792 of file HttpTransact.h.
References HostDBApplicationInfo::allotment, HostDBApplicationInfo::application_data_allotment::application1, HostDBApplicationInfo::application_data_allotment::application2, srv_app, and srv_hostname.
Definition at line 760 of file HttpTransact.h.
Referenced by HttpTransact::HandleCacheOpenReadHit(), HttpTransact::initialize_state_variables_for_origin_server(), HttpTransact::initialize_state_variables_from_request(), HttpTransact::OSDNSLookup(), HttpTransact::PPDNSLookup(), HttpTransact::try_to_expand_host_name(), and update_dns_info().
Definition at line 783 of file HttpTransact.h.
Referenced by HttpTransact::initialize_state_variables_from_request(), HttpTransact::OSDNSLookup(), HttpTransact::PPDNSLookup(), HttpTransact::try_to_expand_host_name(), update_dns_info(), and HttpTransact::will_this_request_self_loop().
Definition at line 781 of file HttpTransact.h.
Referenced by HttpTransact::build_redirect_response(), HttpTransact::HandleRequest(), HttpTransact::initialize_state_variables_for_origin_server(), HttpTransact::initialize_state_variables_from_request(), HttpTransact::OSDNSLookup(), HttpTransact::try_to_expand_host_name(), and update_dns_info().
Definition at line 780 of file HttpTransact.h.
Referenced by HttpTransact::handle_response_from_server(), HttpTransact::OSDNSLookup(), HttpTransact::PPDNSLookup(), HttpTransact::ReDNSRoundRobin(), HttpTransact::try_to_expand_host_name(), and HttpTransact::will_this_request_self_loop().
Definition at line 790 of file HttpTransact.h.
Referenced by HttpTransact::is_response_cacheable().
enum { ... } HttpTransact::_DNSLookupInfo::os_addr_style |
Origin server address source selection.
If config says to use CTA (client target addr) state is OS_ADDR_TRY_CLIENT, otherwise it remains the default. If the connect fails then we switch to a USE. We go to USE_HOSTDB if (1) the HostDB lookup is successful and (2) some address other than the CTA is available to try. Otherwise we keep retrying on the CTA (USE_CLIENT) up to the max retry value. In essence we try to treat the CTA as if it were another RR value in the HostDB record.
Referenced by HttpTransact::handle_response_from_server(), and HttpTransact::OSDNSLookup().
Definition at line 786 of file HttpTransact.h.
Referenced by _DNSLookupInfo().
char HttpTransact::_DNSLookupInfo::srv_hostname[MAXDNAME] |
Definition at line 782 of file HttpTransact.h.
Referenced by _DNSLookupInfo().
Definition at line 784 of file HttpTransact.h.
Referenced by HttpTransact::handle_response_from_server().
Definition at line 785 of file HttpTransact.h.