Branch: Tag:

2008-05-09

2008-05-09 07:22:21 by Erik Dahl <erikd@roxen.com>

With this change the you may use the RoxenUserID cookie's first bytes for stickiness in load balancers if it supports looking at a specific cookie's value

Rev: server/etc/modules/Roxen.pmod:1.239
Rev: server/modules/tags/session_tag.pike:1.23
Rev: server/protocols/http.pike:1.555

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2004, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.554 2008/05/07 10:51:30 mast Exp $"; + constant cvs_version = "$Id: http.pike,v 1.555 2008/05/09 07:22:21 erikd Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR   
677:    NO_PROTO_CACHE();    if (!(port_obj->set_cookie_only_once &&    cache_lookup("hosts_for_cookie",remoteaddr))) { -  misc->moreheads = ([ "Set-Cookie":Roxen.http_roxen_id_cookie(), ]); +  misc->moreheads = ([ "Set-Cookie":Roxen.http_roxen_id_cookie( port_obj ), ]);    }    if (port_obj->set_cookie_only_once)    cache_set("hosts_for_cookie",remoteaddr,1);