I have a lot of entries in my client list with addr=?:0 for example

id=8568423 addr=?:0 fd=15195 name= age=7092720 idle=7092720 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=NULL user=default
id=8568425 addr=?:0 fd=15221 name= age=7092720 idle=7092720 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=NULL user=default
id=8568426 addr=?:0 fd=15215 name= age=7092720 idle=7092720 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=NULL user=default
id=8568434 addr=?:0 fd=15226 name= age=7092720 idle=7092720 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=NULL user=default

What does it mean? How i can safely remove it?

Version of redis 6.0.16

Comment From: enjoy-binbin

https://github.com/redis/redis/blob/6.0.16/redis.conf#L112

take a look in here. We have a timeout that can remove idle client. And the mean time please check your application (addr

oh looks like it was invalid clients. You can use client kill command to kill the connection if you are sure it is useless

Comment From: artarik

is it safe? I mean, if I close immediately about 800 clients, won't the server crash?

Comment From: enjoy-binbin

no. it won't crash the server.
As far as I can recall. It is safe

Comment From: artarik

And the last question, why is the address so strange? as far as i know field addr contains from IP_ADDRESS:PORT

Comment From: enjoy-binbin

sorry, i don't know either...

Comment From: uvletter

?:0 indicates there're some errors while getting the peer's name, which usually means the fd is problematic. https://github.com/redis/redis/blob/a4754e228fda51e4fd136d6e728eb1fc1923e5df/src/anet.c#L607-L617 You can use lsof to confirm if these fds exist or not. Besides, maybe you need to evict the idle clients with the methods in https://redis.io/docs/reference/clients/#client-timeouts

Comment From: artarik

i killed them by restarting redis. thanks