Maxim Dounin
August 08, 2011 10:34AM
Hello!

On Mon, Aug 08, 2011 at 09:41:06AM -0400, Marki555 wrote:

> Do you think it can be a synflood attack? I can see it only during peak
> hours, if it would be attack, I would expect it to be nonstop. If it
> would be synflood, how would nginx handle it? SYN_RECV means that kernel
> has received the initial SYN packet, but the userspace (nginx) didn't
> reply with SYN+ACK yet. But from strace it seems that nginx is not
> receiving those connections...

You understanding of how tcp stack works isn't really correct.
Userland (and nginx) will see connection once it's ESTABLISHED.
Connections in SYN_RECV state are sitting in kernel (traditionally
in listen socket's incomplete queue, on modern OSes likely in
syncache or something like it) and userland won't be able to
accept() them.

> Every request is from different IP (as it's ad-tracking I have more than
> 3 milions diff. IPs per day). Here is output:

I suggest most likely cause is network problems: packets are lost
somewhere in transit, and that's why you see many incomplete
connections.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx slow for no reason

Marki555 August 08, 2011 08:57AM

Re: nginx slow for no reason

Antoine Bonavita August 08, 2011 09:28AM

Re: nginx slow for no reason

Marki555 August 08, 2011 09:41AM

Re: nginx slow for no reason

Marki555 August 08, 2011 02:01PM

Re: nginx slow for no reason

Marki555 August 10, 2011 11:02AM

Re: nginx slow for no reason

Antoine Bonavita August 08, 2011 10:10AM

Re: nginx slow for no reason

Maxim Dounin August 08, 2011 10:34AM

Re: nginx slow for no reason

Maxim Dounin August 08, 2011 04:02PM

Re: nginx slow for no reason

Mark Alan August 08, 2011 04:06PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 243
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready