Hello
When a request comes without a cookie of matching ID, Pound drops the
request complaining that a backend cannot be found.
New sessions cannot be created!
Is there a way to tell Pound what to do when the cookie is missing?
In any case, with the following patch everything is working nicely here.
It changes get_backend to act like the service session type is NONE,
choosing a backend at random, when the cookie is missing.
Thanks
--- orig-Pound/Pound-2.0b4/svc.c 2005-12-07 18:57:59.000000000 +0900
+++ Pound-2.0b4/svc.c 2005-12-21 12:15:01.134382584 +0900
(at)(at) -605,6 +605,8 (at)(at)
svc->sessions = sess_add(svc->sessions, key, res);
} else
res = sp->to_host;
+ } else {
+ res = rand_backend(svc->backends, random() % svc->tot_pri);
}
break;
}
|