使用 lighttpd 1.4.40 的应用程序出现问题

发布于 2025-01-14 17:20:22 字数 423 浏览 1 评论 0原文

我已从 lighttpd 版本 1.4.35 移至 1.4.40,并且我的应用程序已停止工作。

在lighttpd 版本1.4.35 和1.4.40 之间,这是lighttpd 转发到我的应用程序的请求方面的差异。在 lighttpd 1.4.35 中,我的应用程序能够响应,而在 1.4.40 中,我的应用程序无法进行。

我看到的唯一区别是我在下图中突出显示的部分。我不确定我的申请中是否遗漏了某些内容。

左边是lighttpd 1.4.35 的跟踪,右边是lighttpd 1.4.40 的跟踪

< img src="https://i.sstatic.net/VppNq.png" alt="在此处输入图像描述">

I have moved from lighttpd version 1.4.35 to 1.4.40 and my application has stopped working.

Between lighttpd versions 1.4.35 and 1.4.40, this is the difference I have in terms of the request that lighttpd is forwarding to my application. With lighttpd 1.4.35, my application is able to respond whereas with 1.4.40, my application doesn't progress.

The only difference I am seeing is the bit I have highlighted in the image below. I am not sure if I am missing something in my application.

On the left is the trace with lighttpd 1.4.35 and on the right is the trace with lighttpd 1.4.40

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我不吻晚风 2025-01-21 17:20:22

我不确定我是否遗漏了什么

您错过了超过 5 年的 lighttpd 版本。 lighttpd 1.4.40 于 2016 年 7 月发布。lighttpd 1.4.64 于 2022 年 1 月发布。如果您要升级,那么您应该升级到最新版本。

IIRC,lighttpd 1.4.40 及以上版本默认在将响应发送到客户端之前从后端卸载整个响应。您可以在lighttpd.conf 中使用server.stream-response-body = 1 更改此默认值以传输响应。

I am not sure if I am missing something

You're missing over 5 years of lighttpd releases. The lighttpd 1.4.40 was released Jul 2016. lighttpd 1.4.64 was released Jan 2022. If you are going to upgrade, then you should upgrade to a recent release.

IIRC, lighttpd 1.4.40 onwards defaults to offload the entire response from the backend before sending the response to the client. You can use server.stream-response-body = 1 in lighttpd.conf to change this default to stream the response.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文