X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Ffilter_load_balance.cpp;h=af934f3a8c9d68857883ad39ce652a8159b8e915;hb=bddb5f0c90332a14929d25464849f23420c58a3b;hp=86859713e36d097f03daff2a895a6f26af37ebcc;hpb=637a685d61a9ff0e3f398a59da426979815c4d68;p=metaproxy-moved-to-github.git diff --git a/src/filter_load_balance.cpp b/src/filter_load_balance.cpp index 8685971..af934f3 100644 --- a/src/filter_load_balance.cpp +++ b/src/filter_load_balance.cpp @@ -1,4 +1,4 @@ -/* $Id: filter_load_balance.cpp,v 1.8 2007-05-09 21:23:09 adam Exp $ +/* $Id: filter_load_balance.cpp,v 1.11 2008-02-27 11:08:49 adam Exp $ Copyright (c) 2005-2007, Index Data. This file is part of Metaproxy. @@ -28,7 +28,6 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include -#include #include @@ -102,7 +101,7 @@ yf::LoadBalance::~LoadBalance() { // must have a destructor because of boost::scoped_ptr } -void yf::LoadBalance::configure(const xmlNode *xmlnode) +void yf::LoadBalance::configure(const xmlNode *xmlnode, bool test_only) { m_p->configure(xmlnode); } @@ -189,7 +188,7 @@ void yf::LoadBalance::Impl::process(mp::Package &package) // copying new target into init package mp::util::set_vhost_otherinfo(&(org_init->otherInfo), - odr_en, target); + odr_en, target, 1); package.request() = gdu_req; } @@ -248,14 +247,6 @@ void yf::LoadBalance::Impl::process(mp::Package &package) } } -// getting timestamp for receiving of package -//boost::posix_time::ptime receive_time -// = boost::posix_time::microsec_clock::local_time(); -// //<< receive_time << " " -// //<< to_iso_string(receive_time) << " " -//<< to_iso_extended_string(receive_time) << " " - - // statistic manipulating functions, void yf::LoadBalance::Impl::add_dead(unsigned long session_id){