Re: 2.4/2.6 local TCP connect oddity

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Willy Tarreau
Date: Sunday, October 21, 2007 - 8:21 pm

On Sun, Oct 21, 2007 at 10:53:29PM +0200, Tal Kelrich wrote:

Of course, for the same reason. If you reduce the ip_local_port_range, it
will even succeed more often. This is because the source port is choosen
before the first packet is sent, so when it is sent, it reaches a pending
connection (itself).

I can understand that it is confusing when you see it as a single
connection, but try to imagine (or reproduce) with 2 machines, then
translate that to the localhost with a single and same connection.
You may even draw the exchanges on paper, an you will notice that
"each end" of the connection gets its SYN-SYN/ACK-ACK sequence.

You may also tcpdump on loopback if that helps.

Regards,
Willy

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.4/2.6 local TCP connect oddity, Tal Kelrich, (Sun Oct 21, 8:53 am)
Re: 2.4/2.6 local TCP connect oddity, Willy Tarreau, (Sun Oct 21, 10:29 am)
Re: 2.4/2.6 local TCP connect oddity, Tal Kelrich, (Sun Oct 21, 1:53 pm)
Re: 2.4/2.6 local TCP connect oddity, Willy Tarreau, (Sun Oct 21, 8:21 pm)