#1 2025-02-11 08:08:39

tfopc
Member
Registered: 2024-01-08
Posts: 22

Support proxy-protocol v2 / LoadBalancer StickySessions (Cookie)

Hi ab,

any plans to support the proxy-protocol v2, that is often used by load balancers? Of course not so relevant for the http-stuff because of the x-forward-headers.

https://www.haproxy.org/download/1.8/do … otocol.txt

One future improvement (maybe) i would mention for your great framework:

One thing that was missing for me when using the your http-client with load-balancers:
To ensure that a client always uses the same server, the loadbancers uses "sticky-session-cookies". At the moment something like "allowcookies:= true" is missing in your http-client. I (mis-)used as workaround the indy (IdCookieManager) to set the cookie-header, after the first response for the next requests to automatic add the cookies back in the request.

What do you think? Is automatic cookie-handling something the http-client needs?

best regrards,
Tobias

Offline

Board footer

Powered by FluxBB