]> git.kaiwu.me - haproxy.git/commit
[MINOR] http: introduce a new synchronisation state : HTTP_MSG_DONE
authorWilly Tarreau <w@1wt.eu>
Tue, 22 Dec 2009 15:50:27 +0000 (16:50 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 22 Dec 2009 15:50:27 +0000 (16:50 +0100)
commit0394594b067f6383d56e444396e98fa40fbbc3a3
tree5cab577e1707184ab6769f5ff85bbe24c22faaaf
parent63c9e5ffa6e6efd056eb4ae04fa16e3d02e7b0c5
[MINOR] http: introduce a new synchronisation state : HTTP_MSG_DONE

This state indicates that an HTTP message (request or response) is
complete. This will be used to know when we can re-initialize a
new transaction. Right now we only switch to it after the end of
headers if there is no data. When other analysers are implemented,
we can switch to this state too.

The condition to reuse a connection is when the response finishes
after the request. This will have to be checked when setting the
state.
include/types/proto_http.h
src/proto_http.c