Skip to content

Commit

Permalink
Make HTTP/1.1 protocol default (#309).
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksostapenko committed May 16, 2019
1 parent ad183a6 commit dc1f523
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions etc/tempesta_fw.conf
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,9 @@
# 'http/1.1' respectively. It is also possible to specify both protocols
# separated by comma; in this case, the protocols' order is significant for
# TLS ALPN: first specified protocol takes precedence over the last one in
# negotiation procedure. If no application level protocol is given, then HTTP/2
# is default. If the entire 'proto' option is absent, then plain HTTP protocol
# (over TCP) is supposed by the default.
# negotiation procedure. If no application level protocol is given, then
# HTTP/1.1 is default. If the entire 'proto' option is absent, then plain
# HTTP protocol (over TCP) is supposed by the default.
#
# Tempesta FW opens one socket for each 'listen' entry, so it may be repeated
# to listen on multiple addresses/ports. For example:
Expand Down
4 changes: 2 additions & 2 deletions tempesta_fw/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -698,8 +698,8 @@ do { \
if (unlikely(!protos))
return -ENOMEM;

/* Currently HTTP/2 protocol is default option. */
PROTO_INIT(0, HTTP2);
/* Currently HTTP/1.1 protocol is default option. */
PROTO_INIT(0, HTTP1);
tfw_tls.cfg.alpn_list = protos;

if (len == CONF_HTTPS_LEN)
Expand Down

0 comments on commit dc1f523

Please sign in to comment.