You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2011/05/02 18:14:06 UTC

svn commit: r1098644 - /trafficserver/traffic/trunk/proxy/http/HttpSM.cc

Author: zwoop
Date: Mon May  2 16:14:06 2011
New Revision: 1098644

URL: http://svn.apache.org/viewvc?rev=1098644&view=rev
Log:
TS-750 TS does not fail-over if one origin server for a 2 address hostname
goes down.

Author: William Bardwell
Review: Leif

Modified:
    trafficserver/traffic/trunk/proxy/http/HttpSM.cc

Modified: trafficserver/traffic/trunk/proxy/http/HttpSM.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/http/HttpSM.cc?rev=1098644&r1=1098643&r2=1098644&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/http/HttpSM.cc (original)
+++ trafficserver/traffic/trunk/proxy/http/HttpSM.cc Mon May  2 16:14:06 2011
@@ -6628,6 +6628,12 @@ HttpSM::set_next_state()
       HTTP_SM_SET_DEFAULT_HANDLER(&HttpSM::state_mark_os_down);
 
       ink_debug_assert(t_state.dns_info.looking_up == HttpTransact::ORIGIN_SERVER);
+
+      // TODO: This might not be optimal (or perhaps even correct), but it will 
+      // effectively mark the host as down. What's odd is that state_mark_os_down
+      // above isn't triggering.
+      HttpSM::do_hostdb_update_if_necessary();
+
       do_hostdb_lookup();
       break;
     }