#include "client_side.h"
#include "MemBuf.h"
#include "http.h"
+#include "ip/QosConfig.h"
#include "PeerSelectState.h"
#include "StatCounters.h"
tunnelState->serverDestinations.shift();
if (status != COMM_TIMEOUT && tunnelState->serverDestinations.size() > 0) {
/* Try another IP of this destination host */
+
+ if (Ip::Qos::TheConfig.isAclTosActive()) {
+ tunnelState->serverDestinations[0]->tos = GetTosToServer(tunnelState->request);
+ }
+
+#if SO_MARK && USE_LIBCAP
+ tunnelState->serverDestinations[0]->nfmark = GetNfmarkToServer(tunnelState->request);
+#endif
+
debugs(26, 4, HERE << "retry with : " << tunnelState->serverDestinations[0]);
AsyncCall::Pointer call = commCbCall(26,3, "tunnelConnectDone", CommConnectCbPtrFun(tunnelConnectDone, tunnelState));
Comm::ConnOpener *cs = new Comm::ConnOpener(tunnelState->serverDestinations[0], call, Config.Timeout.connect);
}
delete err;
+ if (Ip::Qos::TheConfig.isAclTosActive()) {
+ tunnelState->serverDestinations[0]->tos = GetTosToServer(tunnelState->request);
+ }
+
+#if SO_MARK && USE_LIBCAP
+ tunnelState->serverDestinations[0]->nfmark = GetNfmarkToServer(tunnelState->request);
+#endif
+
debugs(26, 3, HERE << "paths=" << peer_paths->size() << ", p[0]={" << (*peer_paths)[0] << "}, serverDest[0]={" <<
tunnelState->serverDestinations[0] << "}");