大网数据广告活动
服务器运维问答

Is it normal to have HTTP 499 errors in 1 out of 4000 requests?

· 52CE 我爱测

I made a website, behind CloudFlare, and sometimes I get an early terminated (nginx 499) request, which is really hard to work around in the codebase. This happens in about 1 out of 4000 requests. What I would like to ask is if t…

问题原文

原帖链接 · hyperknot · CC BY-SA 3.0

I made a website, behind CloudFlare, and sometimes I get an early terminated (nginx 499) request, which is really hard to work around in the codebase.

This happens in about 1 out of 4000 requests.

What I would like to ask is if this is normal or not? CloudFlare support told me that 499 happens when something between CF and the server drops the connection. I'm not on AWS, not on a load balancer, but on a simple VPS with direct IP connection (no virtual routers, etc.)

已采纳解答

原帖链接 · Michael Hampton · CC BY-SA 3.0

Remember that nginx logs a 499 when, from its perspective, the client it was talking to closed the connection.

Remember also that CloudFlare is not the only thing talking to your web server. It is possible for clients to visit it directly, and many do. If you are using CloudFlare, much of this traffic is Internet background noise and the rest is malicious.

It is very possible that a client which made a direct connection to your server dropped the connection, resulting in the 499. Did you check the directly connected IP address?

As for overall, 1 in 4000 requests is pretty good. I see this a lot more often.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-04-04)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。