local ports exhaust quickly due to TCP TIME_WAIT
when reconnect_interval
is small
#232
Labels
TIME_WAIT
when reconnect_interval
is small
#232
I found that when
reconnect-interval
is small, local ports exhaust quickly before the experiment completes as the log below shows.I find that
SO_LINGER
is not enabled so closed TCP connections go to theTIMEWAIT
state instead of releasing local ports immediately.memtier_benchmark/shard_connection.cpp
Lines 229 to 235 in 4203084
It works if I enable
SO_LINGER
as follows thus aborting the connection immediately when it is closed.Is there any reason
SO_LINGER
is not enabled? Any workaround so I could test the scenario whenreconnect_interval
is very small?The text was updated successfully, but these errors were encountered: