]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] move all HTTP Request-related session material to struct hreq
authorWilly Tarreau <w@1wt.eu>
Sat, 16 Dec 2006 23:05:15 +0000 (00:05 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 16 Dec 2006 23:05:15 +0000 (00:05 +0100)
commit45e73e3cd9679ad5da6f4aa9e62227233d32507a
tree0a86b9b01c2b8bd83cd03b0dcbea1260eaf20fae
parent8a68c24b9190c37f6ae652b7d7049c22f952436f
[MEDIUM] move all HTTP Request-related session material to struct hreq

The req_cap, hdr_state, hdr_idx, auth_hdr and req_line have been moved
to a dedicated hreq structure in the session. It makes is easier to
add HTTP-specific fields such as SOR (start of request) and EOF (end
of headers).

It also made it possible to fix two bugs introduced by last commit :
 - end of headers not correctly detected
 - hdr_idx not freed upon one specific error during session creation

When the backend side will be reworked, it should rely on a similar
structure.
include/types/session.h
src/client.c
src/log.c
src/proto_http.c
src/session.c