"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/http_fetch.c" between
haproxy-2.0.13.tar.gz and haproxy-2.0.14.tar.gz

About: HAProxy is a TCP/HTTP reverse proxy which is particularly suited for high availability environments. LTS (Long-Term Support) release.

http_fetch.c  (haproxy-2.0.13):http_fetch.c  (haproxy-2.0.14)
skipping to change at line 617 skipping to change at line 617
static int smp_fetch_uniqueid(const struct arg *args, struct sample *smp, const char *kw, void *private) static int smp_fetch_uniqueid(const struct arg *args, struct sample *smp, const char *kw, void *private)
{ {
if (LIST_ISEMPTY(&smp->sess->fe->format_unique_id)) if (LIST_ISEMPTY(&smp->sess->fe->format_unique_id))
return 0; return 0;
if (!smp->strm->unique_id) { if (!smp->strm->unique_id) {
if ((smp->strm->unique_id = pool_alloc(pool_head_uniqueid)) == NU LL) if ((smp->strm->unique_id = pool_alloc(pool_head_uniqueid)) == NU LL)
return 0; return 0;
smp->strm->unique_id[0] = '\0'; smp->strm->unique_id[0] = '\0';
build_logline(smp->strm, smp->strm->unique_id,
UNIQUEID_LEN, &smp->sess->fe->format_unique_id);
} }
smp->data.u.str.data = build_logline(smp->strm, smp->strm->unique_id, smp->data.u.str.data = strlen(smp->strm->unique_id);
UNIQUEID_LEN, &smp->sess->fe->format_
unique_id);
smp->data.type = SMP_T_STR; smp->data.type = SMP_T_STR;
smp->data.u.str.area = smp->strm->unique_id; smp->data.u.str.area = smp->strm->unique_id;
smp->flags = SMP_F_CONST; smp->flags = SMP_F_CONST;
return 1; return 1;
} }
/* Returns a string block containing all headers including the /* Returns a string block containing all headers including the
* empty line which separes headers from the body. This is useful * empty line which separes headers from the body. This is useful
* for some headers analysis. * for some headers analysis.
*/ */
 End of changes. 2 change blocks. 
4 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)