Response code 400 for prematurely closed connection

Hello!

Please correct me if I’m wrong, but I noticed if you open and
immediately close a TCP connection to HTTP port without sending any HTTP
headers or anything, it ends up as
xxx.xxx.xxx.xxx - - [16/Dec/2010:18:14:34 +0900] “-” 400 0 “-” “-”
in accesslog. Not that it’s a huge problem, but it confuses our log
analyser/statistics a bit.

Is there a way to disabled those log messages in this case or am I
missing something here?

Many thanks!
Denis.

Posted at Nginx Forum: