Hmmm, yeah, this looks like exactly what my patch does.  Cool.


On Dec 11, 2012, at 4:45 PM, Baptiste wrote:

> Hi Roy,
> 
> Since a few months, HAProxy allows you to define a unique id.
> Check the keyword "unique-id-format" in haproxy 1.5 configuration.txt.
> 
> Maybe it provides whay you want (and makes your patch useless).
> 
> cheers
> 
> 
> On Tue, Dec 11, 2012 at 10:39 PM, Roy Smith <[email protected]> wrote:
>> Hi Willy,
>> 
>> I've just finished patching haproxy-1.5-dev14 to use my unique-id header 
>> code, which we discussed a year or so ago.  There's one thing I'm not 100% 
>> sure about.  You changed the interface of http_find_header2().  Previously, 
>> the third argument was an int, now it's a char*.  I'm assuming that where I 
>> used to do:
>> 
>> +                if (! http_find_header2(hdr, hdr_len, msg->sol, 
>> &txn->hdr_idx, &ctx)) {
>> 
>> I now want
>> 
>> +                if (! http_find_header2(hdr, hdr_len, msg->chn->buf->p + 
>> msg->sol, &txn->hdr_idx, &ctx)) {
>> 
>> yes?  This is in proto_http.c, http_wait_for_request().
>> 
>> Have you given any more thought to picking up this patch for the official 
>> version?  We've been running it in production for well over a year with no 
>> problems.  Yesterdays' traffic volume was 73 million HTTP requests, so I 
>> think we've given it a fair workout.  The feature has proven invaluable for 
>> debugging problems in the site, as it lets us easily correlate lines in our 
>> haproxy, nginx, and application log files.  I'm sure many other haproxy 
>> users would find it equally useful.
>> 
>> ---
>> Roy Smith
>> [email protected]
>> 
>> 
> 


---
Roy Smith
[email protected]




Reply via email to