]> git.ipfire.org Git - thirdparty/haproxy.git/log
thirdparty/haproxy.git
6 years agoMEDIUM: mworker: wait mode use standard init code path
William Lallemand [Wed, 21 Nov 2018 14:48:31 +0000 (15:48 +0100)] 
MEDIUM: mworker: wait mode use standard init code path

The mworker waitpid mode (which is used when a reload failed to apply
the new configuration) was still using a specific initialisation path.
That's a problem since we use a polling loop in the master now, the
master proxy is not initialized and the master CLI is not activated.

This patch removes the initialisation code of the wait mode and
introduce the MODE_MWORKER_WAIT in order to use the same init path as
the MODE_MWORKER with some exceptions. It allows to use the master proxy
and the master CLI during the waitpid mode.

6 years agoBUG/MINOR: mux-htx: Fix bad test on h1c flags in h1_recv_allowed()
Christopher Faulet [Tue, 20 Nov 2018 16:13:52 +0000 (17:13 +0100)] 
BUG/MINOR: mux-htx: Fix bad test on h1c flags in h1_recv_allowed()

A logical OR was used instead of a binary OR. Thanks to David Carlier to spot
and report this bug.

6 years agoBUG/MINOR: config: Be aware of the HTX during the check of mux protocols
Christopher Faulet [Tue, 20 Nov 2018 10:23:52 +0000 (11:23 +0100)] 
BUG/MINOR: config: Be aware of the HTX during the check of mux protocols

Because the HTX is still experimental, we must add special cases during the
configuration check to be sure it is not enabled on a proxy with incompatible
options. Here, for HTX proxies, when a mux protocol is specified on a bind line
or a server line, we must force the HTX mode (PROTO_MODE_HTX).

Concretely, H2 is the only mux protocol that can be forced. And it doesn't yet
support the HTX. So forcing the H2 on an HTX proxy will always fail.

6 years agoMINOR: stream-int: remove useless checks on CS and conn flags in si_cs_send()
Christopher Faulet [Tue, 20 Nov 2018 09:30:02 +0000 (10:30 +0100)] 
MINOR: stream-int: remove useless checks on CS and conn flags in si_cs_send()

In si_cs_send(), some checks are done the CS flags en the connection flags
before calling snd_buf(). But these checks are useless because they have already
been done earlier in the function. The harder to figure out is the flag
CO_FL_SOCK_WR_SH. So it is now tested with CF_SHUTW at the beginning.

6 years agoBUG/MINOR: stream-int: Don't call snd_buf() if there are still data in the pipe
Christopher Faulet [Tue, 20 Nov 2018 09:21:08 +0000 (10:21 +0100)] 
BUG/MINOR: stream-int: Don't call snd_buf() if there are still data in the pipe

In si_cs_send, as said in comments, snd_buf() should only be called if there is
no data in the pipe anymore. But actually, this condition was not respected.

6 years agoMINOR: stream-int: Notify caller when an error is reported after a rcv_buf()
Christopher Faulet [Tue, 20 Nov 2018 08:34:35 +0000 (09:34 +0100)] 
MINOR: stream-int: Notify caller when an error is reported after a rcv_buf()

For the same reason than for the commit b46784b1c ("MINOR: stream-int: Notify
caller when an error is reported after a rcv_pipe()"), we return 1 after the
call to rcv_buf() in si_cs_send() to notify the caller some processing may be
triggered.

This patch is not flagged as a bug because no strange behaviour was yet observed
without it. It is just a proactive fix to be consistent.

6 years agoMINOR: stream-int: Notify caller when an error is reported after a rcv_pipe()
Christopher Faulet [Mon, 19 Nov 2018 21:02:07 +0000 (22:02 +0100)] 
MINOR: stream-int: Notify caller when an error is reported after a rcv_pipe()

In si_cs_send(), when an error is found on the CS or the connection at the
beginning of the function, we return 1 to notify the caller some processing may
be triggered. So, it seems logical to do the same after the call to rcv_pipe().

This patch is not flagged as a bug because no strange behaviour was yet observed
without it. It is just a proactive fix to be consistent.

6 years agoBUG/MINOR: proto_htx: Fix request/response synchronisation on error
Christopher Faulet [Mon, 19 Nov 2018 20:59:00 +0000 (21:59 +0100)] 
BUG/MINOR: proto_htx: Fix request/response synchronisation on error

The HTTP transaction must be aborted if an error is detected on any one
side.

6 years agoBUG/MINOR: stats/htx: Remove channel's output when the request is eaten
Christopher Faulet [Mon, 19 Nov 2018 20:58:10 +0000 (21:58 +0100)] 
BUG/MINOR: stats/htx: Remove channel's output when the request is eaten

The request is eaten when the stats applet have finished to send its
response. It was removed from the channel's buffer, removing all HTX blocks till
the EOM. But the channel's output was not reset, leaving the request channel in
an undefined state.

6 years agoBUG/MEDIUM: mux-h1: Don't set the flag CS_FL_RCV_MORE when nothing was parsed
Christopher Faulet [Mon, 19 Nov 2018 20:54:26 +0000 (21:54 +0100)] 
BUG/MEDIUM: mux-h1: Don't set the flag CS_FL_RCV_MORE when nothing was parsed

When we start to parse a new message, if all headers have not been received,
nothing is copied in the channel's buffer. In this situation, we must not set
the flag CS_FL_RCV_MORE on the conn-stream. If we do so, the connection freezes
because there is no data to send that can reenable the reads

6 years agoBUG/MEDIUM: mux-h1: Fix freeze when the kernel splicing is used
Christopher Faulet [Mon, 19 Nov 2018 20:52:12 +0000 (21:52 +0100)] 
BUG/MEDIUM: mux-h1: Fix freeze when the kernel splicing is used

First of all, we need to be sure to keep the flag H1S_F_BUF_FLUSH on the H1S
reading data until all data was flushed from the buffer. Then we need to know
when the kernel splicing is in use and when it ends. This is handled with the
new flag H1S_F_SPLICED_DATA.

Then, we must subscribe to send when some data remain in the pipe after a
snd_pipe(). It is mandatory to wakeup the stream and avoid a freeze.

Finally, we must be sure to update the message state when we restart to use the
channel's buffer. Among other things, it is mandatory to swith the message from
DATA to DONE state when all data were sent using the kernel splicing.

6 years agoBUG/MINOR: mux-h1: Enable keep-alive on server side
Christopher Faulet [Mon, 19 Nov 2018 20:22:43 +0000 (21:22 +0100)] 
BUG/MINOR: mux-h1: Enable keep-alive on server side

Don't force the close on server side anymore. Since commit 7c6f8b146 ("MAJOR:
connections: Detach connections from streams"), it is possible to release a
stream without the underlying connection.

Because of this change, we must be sure to create a new stream to handle the
next HTTP transaction only on the client side. And we must be sure to correctly
handle the read0 event in h1_recv, to be sure to call h1_process().

6 years agoMAJOR: mux-h1: Remove the rxbuf and decode HTTP messages in channel's buffer
Christopher Faulet [Mon, 19 Nov 2018 09:40:09 +0000 (10:40 +0100)] 
MAJOR: mux-h1: Remove the rxbuf and decode HTTP messages in channel's buffer

It avoids a copy between the rxbuf and the channel's buffer. It means the
parsing is done in h1_rcv_buf(). So we need to have a stream to start the
parsing. This change should improve the overall performances. It also implies a
better split between the connection layer and the applicative layer. Now, on the
connection layer, only raw data are manipulated. Raw data received from the
socket are stored in ibuf and those sent are get from obuf. On the applicative
layer, data in ibuf are parsed and copied into the channel's buffer. And on the
other side, those structured data are formatted and copied into obuf.

6 years agoBUG/MEDIUM: hpack: fix encoding of "accept-ranges" field
Willy Tarreau [Tue, 20 Nov 2018 03:47:38 +0000 (04:47 +0100)] 
BUG/MEDIUM: hpack: fix encoding of "accept-ranges" field

James Brown reported that when an "accept-ranges" header field is sent
through haproxy and converted from HTTP/1.1 to H2, it's mis-encoded as
"accept-language". It happens that it's one of the few very common header
fields encoded using its index value and that this index value was misread
in the spec as 17 instead of 18, resulting in the wrong name being sent.
Thanks to Lukas for spotting the issue in the HPACK encoder itself.

This fix must be backported to 1.8.

6 years agoMINOR: cli: show master information in 'show proc'
William Lallemand [Mon, 19 Nov 2018 17:46:18 +0000 (18:46 +0100)] 
MINOR: cli: show master information in 'show proc'

Displays the master information in show proc.

6 years agoMINOR: cli: displays uptime in `show proc`
William Lallemand [Mon, 19 Nov 2018 17:46:17 +0000 (18:46 +0100)] 
MINOR: cli: displays uptime in `show proc`

Displays the uptime of the workers in `show proc`

6 years agoMINOR: cli: format `show proc` to be more readable
William Lallemand [Mon, 19 Nov 2018 17:46:16 +0000 (18:46 +0100)] 
MINOR: cli: format `show proc` to be more readable

Add more space on the output to be more readable and separate old
processes from current ones.

6 years agoBUILD: Makefile: switch to quiet mode by default for CC/LD/AR
Willy Tarreau [Mon, 19 Nov 2018 07:15:54 +0000 (08:15 +0100)] 
BUILD: Makefile: switch to quiet mode by default for CC/LD/AR

These commands are now replaced with a prefix and the target name only
in quiet mode, which is much more readable and allows better detection
of build warnings than the default verbose mode. Using V=1 switches back
to the detailed output.

6 years agoBUILD: Makefile: add "$(Q)" to clean, tags and cscope targets
Willy Tarreau [Mon, 19 Nov 2018 07:14:40 +0000 (08:14 +0100)] 
BUILD: Makefile: add "$(Q)" to clean, tags and cscope targets

These ones didn't have the quiet mode yet.

6 years agoBUILD: Makefile: add the quiet mode to a few more targets
Willy Tarreau [Mon, 19 Nov 2018 06:51:04 +0000 (07:51 +0100)] 
BUILD: Makefile: add the quiet mode to a few more targets

The various install-* and *-tar targets are now launched with $(Q). The
install argument "-v" was added to install commands to see what is copied
where.

6 years agoBUILD: Makefile: make "V=1" show some of the commands that are executed
Willy Tarreau [Mon, 19 Nov 2018 06:44:42 +0000 (07:44 +0100)] 
BUILD: Makefile: make "V=1" show some of the commands that are executed

By default some commands are hidden but sometimes it would be nice to
see what is executed. Make the usual "V=1" unhide these commands.

6 years agoBUILD: reorder the objects in the makefile
Willy Tarreau [Mon, 19 Nov 2018 06:10:59 +0000 (07:10 +0100)] 
BUILD: reorder the objects in the makefile

This is the annual reordering of the make file consisting in sorting
the files by reverse build time. This has sped up the parallel build
at -O2 from 10.5 sec down to 7.9.

6 years agoBUILD: update the list of supported targets and compilers in makefile and readme
Willy Tarreau [Mon, 19 Nov 2018 07:11:40 +0000 (08:11 +0100)] 
BUILD: update the list of supported targets and compilers in makefile and readme

The list of suggested targets reported in the default make command was not
up to date. The equivalent versions were updated in the README as well as
the supported compiler versions.

6 years agoREORG: config: extract the proxy parser into cfgparse-listen.c
Willy Tarreau [Sun, 11 Nov 2018 14:40:36 +0000 (15:40 +0100)] 
REORG: config: extract the proxy parser into cfgparse-listen.c

This was the largest function of the whole file, taking a rough second
to build alone. Let's move it to a distinct file along with a few
dependencies. Doing so saved about 2 seconds on the total build time.

6 years agoREORG: config: extract the global section parser into cfgparse-global
Willy Tarreau [Sun, 11 Nov 2018 14:19:52 +0000 (15:19 +0100)] 
REORG: config: extract the global section parser into cfgparse-global

The config parser is the largest file to build and its build dominates
the total project's build time. Let's start to split it into multiple
smaller pieces by extracting the "global" section parser into a new
file called "cfgparse-global.c". This removes 1/4th of the file's build
time.

6 years ago[RELEASE] Released version 1.9-dev7 v1.9-dev7
Willy Tarreau [Sun, 18 Nov 2018 21:33:00 +0000 (22:33 +0100)] 
[RELEASE] Released version 1.9-dev7

Released version 1.9-dev7 with the following main changes :
    - BUILD: cache: fix a build warning regarding too large an integer for the age
    - CLEANUP: fix typos in the comments of the Makefile
    - CLEANUP: fix a typo in a comment for the contrib/halog subsystem
    - CLEANUP: fix typos in comments for the contrib/modsecurity subsystem
    - CLEANUP: fix typos in comments for contrib/spoa_example
    - CLEANUP: fix typos in comments for contrib/wireshark-dissectors
    - DOC: Fix typos in README and CONTRIBUTING
    - MINOR: log: slightly improve error message syntax on log failure
    - DOC: logs: the format directive was missing from the second log part
    - MINOR: log: report the number of dropped logs in the stats
    - MEDIUM: log: add support for logging to existing file descriptors
    - MEDIUM: log: support a new "short" format
    - MEDIUM: log: add a new "raw" format
    - BUG/MEDIUM: stream-int: change the way buffer room is requested by a stream-int
    - BUG/MEDIUM: stream-int: convert some co_data() checks to channel_is_empty()
    - MINOR: namespaces: don't build namespace.c if disabled
    - BUILD/MEDIUM: threads/affinity: DragonFly build fix
    - MINOR: http: Add new "early-hint" http-request action.
    - MINOR: http: Make new "early-hint" http-request action really be parsed.
    - MINOR: http: Implement "early-hint" http request rules.
    - MINOR: doc: Add information about "early-hint" http-request action.
    - DOC: early-hints: fix truncated line.
    - MINOR: mworker: only close std{in,out,err} in daemon mode
    - BUG/MEDIUM: log: don't CLOEXEC the inherited FDs
    - BUG/MEDIUM: Make sure stksess is properly aligned.
    - BUG/MEDIUM: stream-int: make failed splice_in always subscribe to recv
    - BUG/MEDIUM: stream-int: clear CO_FL_WAIT_ROOM after splicing data in
    - BUG/MINOR: stream-int: make sure not to go through the rcv_buf path after splice()
    - CONTRIB: debug: fix build related to conn_stream flags change
    - REGTEST: fix scripts 1 and 3 to accept development version
    - BUG/MINOR: http_fetch: Remove the version part when capturing the request uri
    - MINOR: http: Regroup return statements of http_req_get_intercept_rule at the end
    - MINOR: http: Regroup return statements of http_res_get_intercept_rule at the end
    - BUG/MINOR: http: Be sure to sent fully formed HTTP 103 responses
    - MEDIUM: jobs: support unstoppable jobs for soft stop
    - MEDIUM: listeners: support unstoppable listener
    - MEDIUM: cli: worker socketpair is unstoppable
    - BUG/MINOR: stream-int: set SI_FL_WANT_PUT in sess_establish()
    - MINOR: stream: move the conn_stream specific calls to the stream-int
    - BUG/MINOR: config: Copy default error messages when parsing of a backend starts
    - CLEANUP: h2: minimum documentation for recent API changes
    - MINOR: mux: implement a get_first_cs() method
    - MINOR: stream-int: make conn_si_send_proxy() use cs_get_first()
    - MINOR: stream-int: relax the forwarding rules in stream_int_notify()
    - MINOR: stream-int: expand the flags to 32-bit
    - MINOR: stream-int: rename SI_FL_WAIT_ROOM to SI_FL_RXBLK_ROOM
    - MINOR: stream-int: introduce new SI_FL_RXBLK flags
    - MINOR: stream-int: add new functions si_{rx,tx}_{blocked,endp_ready}()
    - MINOR: stream-int: replace SI_FL_WANT_PUT with !SI_FL_RX_WAIT_EP
    - MINOR: stream-int: use si_rx_blocked()/si_tx_blocked() to check readiness
    - MEDIUM: stream-int: use si_rx_buff_{rdy,blk} to report buffer readiness
    - MINOR: stream-int: replace si_{want,stop}_put() with si_rx_endp_{more,done}()
    - MEDIUM: stream-int: update the endp polling status only at the end of si_cs_recv()
    - MINOR: stream-int: make si_sync_recv() simply check ENDP before si_cs_recv()
    - MINOR: stream-int: automatically mark applets as ready if they block on the channel
    - MEDIUM: stream-int: fix the si_cant_put() calls used for end point readiness
    - MEDIUM: stream-int: fix the si_cant_put() calls used for buffer readiness
    - MEDIUM: stream-int: use si_rx_shut_blk() to indicate the SI is closed
    - MEDIUM: stream-int: unconditionally call si_chk_rcv() in update and notify
    - MEDIUM: stream-int: make use of si_rx_chan_{rdy,blk} to control the stream-int from the channel
    - MINOR: stream-int: replace si_cant_put() with si_rx_room_{blk,rdy}()
    - MEDIUM: connections: Wait until the connection is established to try to recv.
    - MEDIUM: mux: Teach the mux_pt how to deal with idle connections.
    - MINOR: mux: Add a new "avail_streams" method.
    - MINOR: mux: Add a destroy() method.
    - MINOR: sessions: Start to store the outgoing connection in sessions.
    - MAJOR: connections: Detach connections from streams.
    - MINOR: conn_stream: Add a flag to notify the mux it should flush its buffers
    - MINOR: htx: Add proto_htx.c file
    - MINOR: conn_stream: Add a flag to notify the mux it must respect the reserve
    - MINOR: http: Add standalone functions to parse a start-line or a header
    - MINOR: http: Call http_send_name_header with the stream instead of the txn
    - MINOR: conn_stream: Add a flag to notify the SI some data were received
    - MINOR: http: Add macros to check if a stream uses the HTX representation
    - MEDIUM: proto_htx: Add HTX analyzers and use it when the mux H1 is used
    - MEDIUM: mux-h1: Add dummy mux to handle HTTP/1.1 connections
    - MEDIUM: mux-h1: Add parsing of incoming and ougoing HTTP messages
    - MAJOR: mux-h1/proto_htx: Handle keep-alive connections in the mux
    - MEDIUM: mux-h1: Add support of the kernel TCP splicing to forward data
    - MEDIUM: htx: Add API to deal with the internal representation of HTTP messages
    - MINOR: http_htx: Add functions to manipulate HTX messages in http_htx.c
    - MINOR: proto_htx: Add some functions to handle HTX messages
    - MAJOR: mux-h1/proto_htx: Switch mux-h1 and HTX analyzers on the HTX representation
    - MINOR: http_htx: Add functions to replace part of the start-line
    - MINOR: http_htx: Add functions to retrieve a specific occurrence of a header
    - MINOR: proto_htx: Rewrite htx_apply_redirect_rule to handle HTX messages
    - MINOR: proto_htx: Add the internal function htx_del_hdr_value
    - MINOR: proto_htx: Add the internal function htx_fmt_res_line
    - MINOR: proto_htx: Add functions htx_transform_header and htx_transform_header_str
    - MINOR: proto_htx: Add functions htx_req_replace_stline and htx_res_set_status
    - MINOR: proto_htx: Add function to build and send HTTP 103 responses
    - MINOR: proto_htx: Add functions htx_req_get_intercept_rule and htx_res_get_intercept_rule
    - MINOR: proto_htx: Add functions to apply req* and rsp* rules on HTX messages
    - MINOR: proto_htx: Add functions to manage cookies on HTX messages
    - MINOR: proto_htx: Add functions to check the cacheability of HTX messages
    - MINOR: proto_htx: Add functions htx_send_name_header
    - MINOR: proto_htx: Add functions htx_perform_server_redirect
    - MINOR: proto_htx: Add functions to handle the stats applet
    - MEDIUM: proto_htx: Adapt htx_process_req_common to handle HTX messages
    - MEDIUM: proto_htx: Adapt htx_process_request to handle HTX messages
    - MINOR: proto_htx: Adapt htx_process_tarpit to handle HTX messages
    - MEDIUM: proto_htx: Adapt htx_wait_for_request_body to handle HTX messages
    - MEDIUM: proto_htx: Adapt htx_process_res_common to handle HTX messages
    - MINOR: http_fetch: Add smp_prefetch_htx
    - MEDIUM: http_fetch: Adapt all fetches to handle HTX messages
    - MEDIUM: mux-h1: Wait for connection establishment before consuming channel's data
    - MINOR: stats/htx: Adapt the stats applet to handle HTX messages
    - MINOR: stream: Don't reset sov value with HTX messages
    - MEDIUM: mux-h1: Handle errors and timeouts in the stream
    - MINOR: filters/htx: Forbid filters when the HTX is enabled on a proxy
    - MINOR: lua/htx: Forbid lua usage when the HTX is enabled on a proxy
    - CLEANUP: Fix some typos in the haproxy subsystem
    - CLEANUP: Fix typos in the dns subsystem
    - CLEANUP: Fix typos in the pattern subsystem
    - CLEANUP: fix 2 typos in the xxhash subsystem
    - CLEANUP: fix a few typos in the comments of the server subsystem
    - CLEANUP: fix a misspell in tests/filltab25.c
    - CLEANUP: fix a typo found in the stream subsystem
    - CLEANUP: fix typos in comments in ebtree
    - CLEANUP: fix typos in reg-tests
    - CLEANUP: fix typos in the comments of the vars subsystem
    - CLEANUP: fix typos in the hlua_fcn subsystem
    - CLEANUP: fix typos in the proto_http subsystem
    - CLEANUP: fix typos in the proxy subsystem
    - CLEANUP: fix typos in the ssl_sock subsystem
    - DOC: Fix typos in different subsections of the documentation
    - DOC: fix a few typos in the documentation
    - MINOR: Fix an error message thrown when we run out of memory
    - MINOR: Fix typos in error messages in the proxy subsystem
    - MINOR: fix typos in the examples files
    - CLEANUP: Fix a typo in the stats subsystem
    - CLEANUP: Fix typos in the acl subsystem
    - CLEANUP: Fix typos in the cache subsystem
    - CLEANUP: Fix typos in the cfgparse subsystem
    - CLEANUP: Fix typos in the filters subsystem
    - CLEANUP: Fix typos in the http subsystem
    - CLEANUP: Fix typos in the log subsystem
    - CLEANUP: Fix typos in the peers subsystem
    - CLEANUP: Fix typos in the regex subsystem
    - CLEANUP: Fix typos in the sample subsystem
    - CLEANUP: Fix typos in the spoe subsystem
    - CLEANUP: Fix typos in the standard subsystem
    - CLEANUP: Fix typos in the stick_table subsystem
    - CLEANUP: Fix typos in the task subsystem
    - MINOR: Fix typo in error message in the standard subsystem
    - CLEANUP: fix typos in the comments of hlua
    - MINOR: Fix typo in the error 500 output of hlua
    - MINOR: Fix a typo in a warning message in the spoe subsystem

6 years agoMINOR: Fix a typo in a warning message in the spoe subsystem
Joseph Herlant [Thu, 15 Nov 2018 21:49:02 +0000 (13:49 -0800)] 
MINOR: Fix a typo in a warning message in the spoe subsystem

Fix a typo in a user-facing message of the spoe subsystem.

6 years agoMINOR: Fix typo in the error 500 output of hlua
Joseph Herlant [Thu, 15 Nov 2018 18:07:32 +0000 (10:07 -0800)] 
MINOR: Fix typo in the error 500 output of hlua

Fixes a common typo in the output generated by the hlua subsystem when
emitting an error 500 page.

6 years agoCLEANUP: fix typos in the comments of hlua
Joseph Herlant [Thu, 15 Nov 2018 18:06:08 +0000 (10:06 -0800)] 
CLEANUP: fix typos in the comments of hlua

Fix typos in the code comments of the hlua subsystem.

6 years agoMINOR: Fix typo in error message in the standard subsystem
Joseph Herlant [Thu, 15 Nov 2018 20:01:22 +0000 (12:01 -0800)] 
MINOR: Fix typo in error message in the standard subsystem

Fix a typo in an error message that could be user-visible when running
out of memory in the parse_binary function.

6 years agoCLEANUP: Fix typos in the task subsystem
Joseph Herlant [Thu, 15 Nov 2018 22:19:23 +0000 (14:19 -0800)] 
CLEANUP: Fix typos in the task subsystem

Fix typos in the code comments of the task subsystem.

6 years agoCLEANUP: Fix typos in the stick_table subsystem
Joseph Herlant [Thu, 15 Nov 2018 21:43:28 +0000 (13:43 -0800)] 
CLEANUP: Fix typos in the stick_table subsystem

Fix some typos in the code comments of the stick_table subsystem.

6 years agoCLEANUP: Fix typos in the standard subsystem
Joseph Herlant [Thu, 15 Nov 2018 19:58:28 +0000 (11:58 -0800)] 
CLEANUP: Fix typos in the standard subsystem

Fix typos in the code comments of the standard subsystem.

6 years agoCLEANUP: Fix typos in the spoe subsystem
Joseph Herlant [Thu, 15 Nov 2018 21:46:49 +0000 (13:46 -0800)] 
CLEANUP: Fix typos in the spoe subsystem

Fix typos in the code comments of the spoe subsystem.

6 years agoCLEANUP: Fix typos in the sample subsystem
Joseph Herlant [Thu, 15 Nov 2018 20:14:56 +0000 (12:14 -0800)] 
CLEANUP: Fix typos in the sample subsystem

Fix some typos in the code comment of the sample subsystem.

6 years agoCLEANUP: Fix typos in the regex subsystem
Joseph Herlant [Thu, 15 Nov 2018 22:46:29 +0000 (14:46 -0800)] 
CLEANUP: Fix typos in the regex subsystem

Fix typos in the code comment of the regex subsystem.

6 years agoCLEANUP: Fix typos in the peers subsystem
Joseph Herlant [Thu, 15 Nov 2018 20:19:14 +0000 (12:19 -0800)] 
CLEANUP: Fix typos in the peers subsystem

Fix some typos in the code comments of the peers subsystem.

6 years agoCLEANUP: Fix typos in the log subsystem
Joseph Herlant [Thu, 15 Nov 2018 20:10:04 +0000 (12:10 -0800)] 
CLEANUP: Fix typos in the log subsystem

Fix some misspells in the code comments of the log subsystem.

6 years agoCLEANUP: Fix typos in the http subsystem
Joseph Herlant [Thu, 15 Nov 2018 21:57:22 +0000 (13:57 -0800)] 
CLEANUP: Fix typos in the http subsystem

Fix typos in code comment of the http subsystem.

6 years agoCLEANUP: Fix typos in the filters subsystem
Joseph Herlant [Thu, 15 Nov 2018 20:24:23 +0000 (12:24 -0800)] 
CLEANUP: Fix typos in the filters subsystem

Fix typos in the code comments of the filters subsystems.

6 years agoCLEANUP: Fix typos in the cfgparse subsystem
Joseph Herlant [Thu, 15 Nov 2018 22:04:19 +0000 (14:04 -0800)] 
CLEANUP: Fix typos in the cfgparse subsystem

Fix typos in the code comments of the cfgpase subsystem.

6 years agoCLEANUP: Fix typos in the cache subsystem
Joseph Herlant [Thu, 15 Nov 2018 22:07:53 +0000 (14:07 -0800)] 
CLEANUP: Fix typos in the cache subsystem

Fix common misspells in the code comments of the cache subsystem.

6 years agoCLEANUP: Fix typos in the acl subsystem
Joseph Herlant [Thu, 15 Nov 2018 22:55:09 +0000 (14:55 -0800)] 
CLEANUP: Fix typos in the acl subsystem

Fix typos in the code comments of the acl subsystem.

6 years agoCLEANUP: Fix a typo in the stats subsystem
Joseph Herlant [Thu, 15 Nov 2018 21:39:46 +0000 (13:39 -0800)] 
CLEANUP: Fix a typo in the stats subsystem

Fix a typo in a code comment of the stats subsystem.

6 years agoMINOR: fix typos in the examples files
Joseph Herlant [Wed, 14 Nov 2018 04:01:24 +0000 (20:01 -0800)] 
MINOR: fix typos in the examples files

To be more specific the error 500 example page and the
transparent_proxy.cfg page. For the later, it is all in the comments but
still user-visible as those are examples.

6 years agoMINOR: Fix typos in error messages in the proxy subsystem
Joseph Herlant [Thu, 15 Nov 2018 19:50:44 +0000 (11:50 -0800)] 
MINOR: Fix typos in error messages in the proxy subsystem

Fix typos in error messages that will be user-visible in the proxy
subsystem.

6 years agoMINOR: Fix an error message thrown when we run out of memory
Joseph Herlant [Thu, 15 Nov 2018 18:43:05 +0000 (10:43 -0800)] 
MINOR: Fix an error message thrown when we run out of memory

Fixes a typo in an error message that can be seen by the end user when
the haproxy subsystem runs out of memory.

6 years agoDOC: fix a few typos in the documentation
Joseph Herlant [Wed, 14 Nov 2018 00:55:16 +0000 (16:55 -0800)] 
DOC: fix a few typos in the documentation

This commit deals with a few misspells in the documentation.

6 years agoDOC: Fix typos in different subsections of the documentation
Joseph Herlant [Wed, 14 Nov 2018 03:45:17 +0000 (19:45 -0800)] 
DOC: Fix typos in different subsections of the documentation

Fix typos found in the design-thoughts, internals and lua-api
subsections of the documentation.

6 years agoCLEANUP: fix typos in the ssl_sock subsystem
Joseph Herlant [Thu, 15 Nov 2018 17:07:59 +0000 (09:07 -0800)] 
CLEANUP: fix typos in the ssl_sock subsystem

Fix some typos found in the code comments of the ssl_sock subsystem.

6 years agoCLEANUP: fix typos in the proxy subsystem
Joseph Herlant [Thu, 15 Nov 2018 19:46:55 +0000 (11:46 -0800)] 
CLEANUP: fix typos in the proxy subsystem

Fix typos in the code comments of the proxy subsystem.

6 years agoCLEANUP: fix typos in the proto_http subsystem
Joseph Herlant [Thu, 15 Nov 2018 17:25:36 +0000 (09:25 -0800)] 
CLEANUP: fix typos in the proto_http subsystem

Fixes typos in the code comments of the proto_http subsystem.

6 years agoCLEANUP: fix typos in the hlua_fcn subsystem
Joseph Herlant [Thu, 15 Nov 2018 17:35:04 +0000 (09:35 -0800)] 
CLEANUP: fix typos in the hlua_fcn subsystem

Fixes typos detected in the code comments of the hlua_fcn subsystem using
the misspell tool and other ones detected manually.

6 years agoCLEANUP: fix typos in the comments of the vars subsystem
Joseph Herlant [Thu, 15 Nov 2018 17:19:50 +0000 (09:19 -0800)] 
CLEANUP: fix typos in the comments of the vars subsystem

Those are mostly misspells of the words available and variable.

6 years agoCLEANUP: fix typos in reg-tests
Joseph Herlant [Wed, 14 Nov 2018 04:15:49 +0000 (20:15 -0800)] 
CLEANUP: fix typos in reg-tests

Fix typos in comments and error messages of reg-tests. Note that this
has not been qualified as minor as it is used for testing purposes, not
end-users.

6 years agoCLEANUP: fix typos in comments in ebtree
Joseph Herlant [Wed, 14 Nov 2018 03:55:57 +0000 (19:55 -0800)] 
CLEANUP: fix typos in comments in ebtree

This is mainly about misspells of the word "occurrence". The misspells
are only located in code comments.

6 years agoCLEANUP: fix a typo found in the stream subsystem
Joseph Herlant [Thu, 15 Nov 2018 17:14:14 +0000 (09:14 -0800)] 
CLEANUP: fix a typo found in the stream subsystem

This typo is in a code comment so not end-user visible.

6 years agoCLEANUP: fix a misspell in tests/filltab25.c
Joseph Herlant [Wed, 14 Nov 2018 04:07:48 +0000 (20:07 -0800)] 
CLEANUP: fix a misspell in tests/filltab25.c

The commit fixes a misspell in a comment of tests/filltab25.c.

6 years agoCLEANUP: fix a few typos in the comments of the server subsystem
Joseph Herlant [Thu, 15 Nov 2018 16:57:51 +0000 (08:57 -0800)] 
CLEANUP: fix a few typos in the comments of the server subsystem

A few misspells where detected in the server subsystem. This commit
fixes them.

6 years agoCLEANUP: fix 2 typos in the xxhash subsystem
Joseph Herlant [Thu, 15 Nov 2018 17:30:49 +0000 (09:30 -0800)] 
CLEANUP: fix 2 typos in the xxhash subsystem

Fixes 2 typos in the comments of the xxhash subsystem.

6 years agoCLEANUP: Fix typos in the pattern subsystem
Joseph Herlant [Thu, 15 Nov 2018 18:22:31 +0000 (10:22 -0800)] 
CLEANUP: Fix typos in the pattern subsystem

Fixes typos in the code comments of the pattern subsystem.

6 years agoCLEANUP: Fix typos in the dns subsystem
Joseph Herlant [Thu, 15 Nov 2018 18:33:28 +0000 (10:33 -0800)] 
CLEANUP: Fix typos in the dns subsystem

Fix misspells in the code comments of the dns subsystem.

6 years agoCLEANUP: Fix some typos in the haproxy subsystem
Joseph Herlant [Thu, 15 Nov 2018 18:41:50 +0000 (10:41 -0800)] 
CLEANUP: Fix some typos in the haproxy subsystem

Fix some typos in the code comments of the haproxy subsystem.

6 years agoMINOR: lua/htx: Forbid lua usage when the HTX is enabled on a proxy
Christopher Faulet [Thu, 8 Nov 2018 10:34:21 +0000 (11:34 +0100)] 
MINOR: lua/htx: Forbid lua usage when the HTX is enabled on a proxy

For now, the lua scripts are not compatible with the new HTX internal
representation of HTTP messages. Thus, for a given proxy, when the option
"http-use-htx" is enabled, an error is triggered if any lua's
action/service/sample-fetch/converter is also configured.

6 years agoMINOR: filters/htx: Forbid filters when the HTX is enabled on a proxy
Christopher Faulet [Wed, 7 Nov 2018 13:09:32 +0000 (14:09 +0100)] 
MINOR: filters/htx: Forbid filters when the HTX is enabled on a proxy

For now, the filters are not compatible with the new HTX internal representation
of HTTP messages. Thus, for a given proxy, when the option "http-use-htx" is
enabled, an error is triggered if any filter is also configured.

6 years agoMEDIUM: mux-h1: Handle errors and timeouts in the stream
Christopher Faulet [Wed, 31 Oct 2018 16:40:50 +0000 (17:40 +0100)] 
MEDIUM: mux-h1: Handle errors and timeouts in the stream

To do so, the stream is created as earlier as possible. It means, during the mux
creation for the first request, and for others, just at the end of the previous
transaction. Because all timeouts are handled by the strream, the mux's task is
now useless, so it is removed. Finally, to report errors, flags are set on the
HTX message. The HTX message is passed to the stream if there is some content to
analyse or if there is some error to handle.

All of this will probably be reworked later to handle errors and timeouts
directly in the mux. For now, it is the simpler way to handle all of this.

6 years agoMINOR: stream: Don't reset sov value with HTX messages
Christopher Faulet [Wed, 31 Oct 2018 12:43:33 +0000 (13:43 +0100)] 
MINOR: stream: Don't reset sov value with HTX messages

6 years agoMINOR: stats/htx: Adapt the stats applet to handle HTX messages
Christopher Faulet [Wed, 31 Oct 2018 07:47:01 +0000 (08:47 +0100)] 
MINOR: stats/htx: Adapt the stats applet to handle HTX messages

Switches between the HTX version of the code and the legacy one have been added
to let the stats applet work with both.

6 years agoMEDIUM: mux-h1: Wait for connection establishment before consuming channel's data
Christopher Faulet [Fri, 26 Oct 2018 15:36:03 +0000 (17:36 +0200)] 
MEDIUM: mux-h1: Wait for connection establishment before consuming channel's data

When a server is down, the channel's data must not be consumed. This is
required to allow redispatch and connection retry. So now, we wait for
the connection to be marked as connected, with the flag CO_FL_CONNECTED,
before starting to consume channel's data. In the mux, this event is
tracked with the flag H1C_F_CS_WAIT_CONN.

6 years agoMEDIUM: http_fetch: Adapt all fetches to handle HTX messages
Christopher Faulet [Wed, 24 Oct 2018 19:41:55 +0000 (21:41 +0200)] 
MEDIUM: http_fetch: Adapt all fetches to handle HTX messages

For HTTP proxies, when the HTX internal representation is used, or for all TCP
proxies, we use the HTX version of sample fetches.

6 years agoMINOR: http_fetch: Add smp_prefetch_htx
Christopher Faulet [Wed, 24 Oct 2018 19:39:27 +0000 (21:39 +0200)] 
MINOR: http_fetch: Add smp_prefetch_htx

It does the same than smp_prefetch_http but for HTX messages. It can be called
from an HTTP proxy or a TCP proxy. For HTTP proxies, the parsing is handled by
the mux, so it does nothing but wait. For TCP proxies, it tries to parse an HTTP
message and to convert it in a temporary HTX message. Sample fetches will use
this temporary variable to do their job.

6 years agoMEDIUM: proto_htx: Adapt htx_process_res_common to handle HTX messages
Christopher Faulet [Wed, 24 Oct 2018 09:17:50 +0000 (11:17 +0200)] 
MEDIUM: proto_htx: Adapt htx_process_res_common to handle HTX messages

6 years agoMEDIUM: proto_htx: Adapt htx_wait_for_request_body to handle HTX messages
Christopher Faulet [Wed, 24 Oct 2018 09:16:22 +0000 (11:16 +0200)] 
MEDIUM: proto_htx: Adapt htx_wait_for_request_body to handle HTX messages

This version is simpler than the legacy one because the parsing is no more
handled by the analyzer. So now we just need to wait to have more data to move
on.

6 years agoMINOR: proto_htx: Adapt htx_process_tarpit to handle HTX messages
Christopher Faulet [Wed, 24 Oct 2018 09:15:09 +0000 (11:15 +0200)] 
MINOR: proto_htx: Adapt htx_process_tarpit to handle HTX messages

6 years agoMEDIUM: proto_htx: Adapt htx_process_request to handle HTX messages
Christopher Faulet [Wed, 24 Oct 2018 09:14:34 +0000 (11:14 +0200)] 
MEDIUM: proto_htx: Adapt htx_process_request to handle HTX messages

6 years agoMEDIUM: proto_htx: Adapt htx_process_req_common to handle HTX messages
Christopher Faulet [Wed, 24 Oct 2018 09:13:16 +0000 (11:13 +0200)] 
MEDIUM: proto_htx: Adapt htx_process_req_common to handle HTX messages

Here, the only real change is that the stats and cache applets are disabled.

6 years agoMINOR: proto_htx: Add functions to handle the stats applet
Christopher Faulet [Wed, 24 Oct 2018 19:21:30 +0000 (21:21 +0200)] 
MINOR: proto_htx: Add functions to handle the stats applet

For now, the call to the stats applet is disabled for HTX messages. But HTX
versions of the function to check the request URI against the stats URI and the
fnuction to prepare the call to the stats applet have been added.

6 years agoMINOR: proto_htx: Add functions htx_perform_server_redirect
Christopher Faulet [Wed, 24 Oct 2018 19:18:04 +0000 (21:18 +0200)] 
MINOR: proto_htx: Add functions htx_perform_server_redirect

It is more or less the same than legacy version but adapted to be called from
HTX analyzers. In the legacy version of this function, we switch on the HTX code
when applicable.

6 years agoMINOR: proto_htx: Add functions htx_send_name_header
Christopher Faulet [Wed, 24 Oct 2018 19:15:35 +0000 (21:15 +0200)] 
MINOR: proto_htx: Add functions htx_send_name_header

It is more or less the same than legacy version but adapted to be called from
HTX analyzers. In the legacy version of this function, we switch on the HTX code
when applicable.

6 years agoMINOR: proto_htx: Add functions to check the cacheability of HTX messages
Christopher Faulet [Wed, 24 Oct 2018 10:00:25 +0000 (12:00 +0200)] 
MINOR: proto_htx: Add functions to check the cacheability of HTX messages

It is more or less the same than legacy versions but adapted to be called from
HTX analyzers. In the legacy versions of these functions, we switch on the HTX
code when applicable.

6 years agoMINOR: proto_htx: Add functions to manage cookies on HTX messages
Christopher Faulet [Wed, 24 Oct 2018 09:56:22 +0000 (11:56 +0200)] 
MINOR: proto_htx: Add functions to manage cookies on HTX messages

It is more or less the same than legacy versions but adapted to be called from
HTX analyzers.

6 years agoMINOR: proto_htx: Add functions to apply req* and rsp* rules on HTX messages
Christopher Faulet [Wed, 24 Oct 2018 09:53:01 +0000 (11:53 +0200)] 
MINOR: proto_htx: Add functions to apply req* and rsp* rules on HTX messages

It is more or less the same than legacy versions but adapted to be called from
HTX analyzers.

6 years agoMINOR: proto_htx: Add functions htx_req_get_intercept_rule and htx_res_get_intercept_rule
Christopher Faulet [Wed, 24 Oct 2018 09:39:23 +0000 (11:39 +0200)] 
MINOR: proto_htx: Add functions htx_req_get_intercept_rule and htx_res_get_intercept_rule

It is more or less the same than legacy versions but adapted to be called from
HTX analyzers.

6 years agoMINOR: proto_htx: Add function to build and send HTTP 103 responses
Christopher Faulet [Thu, 15 Nov 2018 15:39:29 +0000 (16:39 +0100)] 
MINOR: proto_htx: Add function to build and send HTTP 103 responses

It is more or less the same than legacy versions but adapted to be called from
HTX analyzers.

6 years agoMINOR: proto_htx: Add functions htx_req_replace_stline and htx_res_set_status
Christopher Faulet [Wed, 24 Oct 2018 09:27:39 +0000 (11:27 +0200)] 
MINOR: proto_htx: Add functions htx_req_replace_stline and htx_res_set_status

It is more or less the same than legacy versions but adapted to be called from
HTX analyzers. In the legacy versions of these functions, we switch on the HTX
code when applicable.

6 years agoMINOR: proto_htx: Add functions htx_transform_header and htx_transform_header_str
Christopher Faulet [Wed, 24 Oct 2018 09:25:02 +0000 (11:25 +0200)] 
MINOR: proto_htx: Add functions htx_transform_header and htx_transform_header_str

It is more or less the same than legacy versions but adapted to be called from
HTX analyzers.

6 years agoMINOR: proto_htx: Add the internal function htx_fmt_res_line
Christopher Faulet [Wed, 24 Oct 2018 09:06:58 +0000 (11:06 +0200)] 
MINOR: proto_htx: Add the internal function htx_fmt_res_line

6 years agoMINOR: proto_htx: Add the internal function htx_del_hdr_value
Christopher Faulet [Wed, 24 Oct 2018 09:05:36 +0000 (11:05 +0200)] 
MINOR: proto_htx: Add the internal function htx_del_hdr_value

It is more or less the same than del_hdr_value but adapted to be called from HTX
analyzers. The main changes is that it takes pointers on the start and the end
of the header value.

6 years agoMINOR: proto_htx: Rewrite htx_apply_redirect_rule to handle HTX messages
Christopher Faulet [Wed, 24 Oct 2018 09:02:25 +0000 (11:02 +0200)] 
MINOR: proto_htx: Rewrite htx_apply_redirect_rule to handle HTX messages

6 years agoMINOR: http_htx: Add functions to retrieve a specific occurrence of a header
Christopher Faulet [Wed, 24 Oct 2018 08:39:35 +0000 (10:39 +0200)] 
MINOR: http_htx: Add functions to retrieve a specific occurrence of a header

There are 2 functions. The first one considers any comma as a delimiter for
distinct values. The second one considers full-line headers.

6 years agoMINOR: http_htx: Add functions to replace part of the start-line
Christopher Faulet [Wed, 24 Oct 2018 08:36:45 +0000 (10:36 +0200)] 
MINOR: http_htx: Add functions to replace part of the start-line

6 years agoMAJOR: mux-h1/proto_htx: Switch mux-h1 and HTX analyzers on the HTX representation
Christopher Faulet [Mon, 22 Oct 2018 07:34:31 +0000 (09:34 +0200)] 
MAJOR: mux-h1/proto_htx: Switch mux-h1 and HTX analyzers on the HTX representation

The mux-h1 now parses and formats HTTP/1 messages using the HTX
representation. The HTX analyzers have been updated too. For now, only
htx_wait_for_{request/response} and http_{request/response}_forward_body have
been adapted. Others are disabled for now.

Now, the HTTP messages are parsed by the mux on a side and then, after analysis,
formatted on the other side. In the middle, in the stream, there is no more
parsing. Among other things, the version parsing is now handled by the
mux. During the data forwarding, depending the value of the "extra" field, we
are able to know if the body length is known or not and if yes, how many bytes
are still expected.

6 years agoMINOR: proto_htx: Add some functions to handle HTX messages
Christopher Faulet [Mon, 22 Oct 2018 07:29:56 +0000 (09:29 +0200)] 
MINOR: proto_htx: Add some functions to handle HTX messages

More functions will come, but it is the minimum to switch HTX analyzers on the
HTX internal representation.

6 years agoMINOR: http_htx: Add functions to manipulate HTX messages in http_htx.c
Christopher Faulet [Mon, 22 Oct 2018 07:17:28 +0000 (09:17 +0200)] 
MINOR: http_htx: Add functions to manipulate HTX messages in http_htx.c

This file will host all functions to manipulate HTTP messages using the HTX
representation. Functions in this file will be able to be called from anywhere
and are mainly related to the HTTP semantics.

6 years agoMEDIUM: htx: Add API to deal with the internal representation of HTTP messages
Christopher Faulet [Mon, 22 Oct 2018 06:59:39 +0000 (08:59 +0200)] 
MEDIUM: htx: Add API to deal with the internal representation of HTTP messages

The internal representation of an HTTP message, called HTX, is a structured
representation, unlike the old one which is a raw representation of
messages. Idea is to have a version-agnostic representation of the HTTP
messages, which can be easily used by to handle HTTP/1, HTTP/2 and hopefully
QUIC messages, and communication from one of them to another.

In this patch, we add types to define the internal representation itself and the
main functions to manipulate them.

6 years agoMEDIUM: mux-h1: Add support of the kernel TCP splicing to forward data
Christopher Faulet [Tue, 2 Oct 2018 13:59:23 +0000 (15:59 +0200)] 
MEDIUM: mux-h1: Add support of the kernel TCP splicing to forward data

The mux relies on the flag CO_RFL_BUF_FLUSH during a call to h1_rcv_buf to know
if it needs to stop reads and to flush its internal buffers to use kernel tcp
splicing. It is the caller responsibility (here the SI) to know when it must
come back on buffered exchanges.

6 years agoMAJOR: mux-h1/proto_htx: Handle keep-alive connections in the mux
Christopher Faulet [Mon, 1 Oct 2018 10:12:37 +0000 (12:12 +0200)] 
MAJOR: mux-h1/proto_htx: Handle keep-alive connections in the mux

Now, the connection mode is detected in the mux and not in HTX analyzers
anymore. Keep-alive connections are now managed by the mux. A new stream is
created for each transaction. This removes the most important part of the
synchronization between channels and the HTTP transaction cleanup. These changes
only affect the HTX part (proto_htx.c). Legacy HTTP analyzers remain untouched
for now.

On the client-side, the mux is responsible to create new streams when a new
request starts. It is also responsible to parse and update the "Connection:"
header of the response. On the server-side, the mux is responsible to parse and
update the "Connection:" header of the request. Muxes on each side are
independent. For now, there is no connection pool on the server-side, so it
always close the server connection.

6 years agoMEDIUM: mux-h1: Add parsing of incoming and ougoing HTTP messages
Christopher Faulet [Thu, 20 Sep 2018 14:14:40 +0000 (16:14 +0200)] 
MEDIUM: mux-h1: Add parsing of incoming and ougoing HTTP messages

For now, it only parses and transfers data. There is no internal representation
yet. It means the stream still need to parse it too. So a message is parsed 3
times today: one time by each muxes (the client one and the server one) and
another time by the stream. This is of course inefficient. But don't worry, it
is only a transitionnal state. And this mux is optional for now.

BTW, headers and body parsing are now handled using same functions than the mux
H2. Request/Response synchronization is also handled. The mux's task is now used
to catch client/http-request timeouts. Others timeouts are still handled by the
stream. On the clien-side, the stream is created once headers are fully parsed
and body parsing starts only when heeaders are transferred to the stream (ie,
copied into channel buffer).

There is still some known limitations here and there. But, it works in the
common cases. Bad message are not captured and some logs are emitted when errors
occur, only if no stream are attached to the mux. Otherwise, data are
transferred and we let the stream handles errors itself.

6 years agoMEDIUM: mux-h1: Add dummy mux to handle HTTP/1.1 connections
Christopher Faulet [Thu, 13 Sep 2018 07:05:15 +0000 (09:05 +0200)] 
MEDIUM: mux-h1: Add dummy mux to handle HTTP/1.1 connections

For now, it is just an other kind of passthrough multiplexer, but with internal
buffers to be prepared to parse incoming messages and to format outgoing
ones. There is also a task attached to it to handle timeouts. However, because
it does not handle any timeout for now, this task is unused. And finally,
because it handles internal buffers, it also handles retries on recv/send. To
use this multiplexer, you must use the option "http-use-htx" both on the
frontend and the backend.

It does not support keep-alive and will freeze connections after the first
request/response.

6 years agoMEDIUM: proto_htx: Add HTX analyzers and use it when the mux H1 is used
Christopher Faulet [Wed, 3 Oct 2018 14:38:02 +0000 (16:38 +0200)] 
MEDIUM: proto_htx: Add HTX analyzers and use it when the mux H1 is used

For now, these analyzers are just copies of the legacy HTTP analyzers. But,
during the HTTP refactoring, it will be the main place where it will be
visible. And in legacy analyzers, the macro IS_HTX_STRM is used to know if the
HTX version should be called or not.

Note: the following commits were applied to proto_http.c after this patch
      was developed and need to be studied to see if an adaptation to htx
      is required :

  fd9b68c BUG/MINOR: only mark connections private if NTLM is detected