Fei Ding
No TIME-WAIT socket when using Haproxy with Redis
November 09, 2017 10:10AM
Hi:

I am confused about why there is no TIME-WAIT socket when using Haproxy to
check Redis living status. Could any one give me some hit, or even get me
to the specific source code?

Thanks a lot.
Moemen MHEDHBI
Re: No TIME-WAIT socket when using Haproxy with Redis
November 09, 2017 12:40PM
Hi,

If you are talking about TCP health checks, this is a normal behaviour
because we take care of closing the connection with a RST after the
handshake.

And when closing the connection with RST there is no TIME_WAIT becauseĀ 
RFC 793 explicitly says that on |RST| reception no response is to be
sent and you must go into the |CLOSED| state.

++


On 09/11/2017 09:58, Fei Ding wrote:
> Hi:
>
> I am confused about why there is no TIME-WAIT socket when using
> Haproxy to check Redis living status. Could any one give me some hit,
> or even get me to the specific source code?
>
> Thanks a lot.
>

--
Moemen MHEDHBI
Sorry, only registered users may post in this forum.

Click here to login