When I checked the Nginx log recently, I found that there were many records with http code 499. I want to know what this 499 represents?
伊谢尔伦2017-05-16 17:22:21
First of all, this question should be searchable on Baidu and Google.
Secondly, let me answer it
499, client has closed connection
It means that the client actively disconnected. Generally, the server's processing time is too long, and the client can't wait and disconnects.
Another situation is that someone attacks and deliberately consumes server resources.
怪我咯2017-05-16 17:22:21
In the nginx source code, the corresponding definition of 499 is "client has closed connection". This is most likely because the server-side processing time is too long and the client is "impatient". To solve this problem, some optimizations need to be done in the program.
http://blog.csdn.net/rainday0310/article/details/8166163