Skip to content

408 400 log 记录upstream #1986

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Heysexyboy opened this issue Feb 8, 2025 · 1 comment
Open

408 400 log 记录upstream #1986

Heysexyboy opened this issue Feb 8, 2025 · 1 comment
Assignees

Comments

@Heysexyboy
Copy link

  • 1111:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:2222 - [06/Feb/2025:17:02:27 +0800] POST test.tenginetest.com /uoload/test.mp4 32.011 400 0 '-' 'Gmacs/2.0' '-' - - - 'TLS_AES_256_GCM_SHA384' 'test__default_pool' localhost https - - - 0 0 TLSv1.3 no_act nil - 2097633 0 - -

  • 1111:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:2222 - [06/Feb/2025:17:01:48 +0800] POST test.tenginetest.com /uoload/test.mp4 75.805 408 0 '-' 'Gmacs/2.0' '-' - - - 'TLS_AES_256_GCM_SHA384' 'test__default_pool' localhost https - - - 0 0 TLSv1.3 no_act nil - 705027 0 - -

日志记录tengine返回400 和408 状态码,根据官方解释408 是因为客户端和nginx 的传输时间 超过client_header_timeout 或者 client_body_timeout 产生的,400状态也是因为客户端变更或者请求异常不正确导致,nginx应该还没有与后端建链,为什么日志会记录upstream呢?

@mrpre
Copy link
Collaborator

mrpre commented Feb 19, 2025

Please show your full NGINX config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants