haproxy和大型GET请求

编程入门 行业动态 更新时间:2024-10-27 10:33:57
本文介绍了haproxy和大型GET请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一台服务器,需要接收大型(64K)GET请求.看起来haproxy(v 1.6)的编译时限制为16K.我希望我错过了一些东西.

I have a server that needs to receive large (64K) GET requests. It looks like haproxy (v 1.6) has a compile-time limit of 16K. I'm hoping I missed something.

cbonte.github.io /haproxy-dconv/1.6/configuration.html#3.2-tune.bufsize

除了重新编译haproxy以外,还有其他指针吗?

Any pointers other than recompiling haproxy?

有些相关,为什么在这种情况下,haproxy会返回400而不能返回414?

Somewhat related, any insight why haproxy would return 400 and not 414 in such a case?

推荐答案

我可以为主要问题提供答案.尽管有链接的文档,但它似乎不是编译时的选项.设置就足够了

I can provide an answer to the primary question. Despite the linked documentation, this appears not to be a compile-time option. It was enough to set

tune.bufsize 65536

在/etc/haproxy/haproxy.cfg的全局部分中.

关于400 vs 418,这是我自己的偏见. HAProxy表示请求太长了,它包含在400中.我在想GET请求,其中URI本身太长(418),这是请求本身太长的子集.

As to 400 vs 418, this was my own bias. HAProxy is saying that the request is too long, which is included in 400. I was thinking of GET requests in which the URI itself is too long (418), and this is a subset of the request itself being too long.

更多推荐

haproxy和大型GET请求

本文发布于:2023-10-26 01:09:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1528632.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:haproxy

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!