mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
Contrary to haproxy, httpterm does not support all the HTTP protocols. Furthermore, it has become easier to handle inbound/outbound connections/streams since the rework done at conn_stream level. This patch implements httpterm HTTP server services into haproxy. To do so, it proceeds the same way as for the TCP checks which use only one stream connector, but on frontend side. Into haproxy, the httpterm server also instantiates a httpterm stream (hstream struct) attached to a stream connector for each incoming connection without backend stream connector. This is the role of sc_new_from_endp() called by the muxes to instantiate streams/hstreams. As for stream_new(), hstream_new() instantiates a task named process_hstream() (see httpterm.c) which has the same role as process_stream() but for httpterm streams. httpterm into haproxy takes advantage of the HTTP muxes and HTX API to support all the HTTP protocols supported by haproxy. httpterm_init.c is added to implement haproxy_init_args() which overloads the one defined by haproxy.c. This way, httpterm program uses its own argv[] parsing function. |
||
|---|---|---|
| .. | ||
| haproxy | ||
| import | ||
| make | ||