]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] make the http server error function a pointer in the session
authorWilly Tarreau <w@1wt.eu>
Sun, 30 Nov 2008 19:44:17 +0000 (20:44 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 30 Nov 2008 19:44:17 +0000 (20:44 +0100)
commit0cac36f4156fd73802e19352a513f7220865c9df
tree4ab158fae429e2bac67bc283b15cb81770306ae8
parent2d3d94cf23c11b6aef2a31cdc49562983136a546
[MEDIUM] make the http server error function a pointer in the session

It was a bit awkward to have session.c call return_srv_error() for
HTTP error messages related to servers. The function has been adapted
to be passed a pointer to the faulty stream interface, and is now a
pointer in the session. It is possible that in the future, it will
become a callback in the stream interface itself.
include/proto/proto_http.h
include/types/session.h
src/client.c
src/proto_http.c
src/session.c