How to debug redis connection problem

271 views
Skip to first unread message

kaixin toucai

unread,
Dec 14, 2014, 9:32:49 PM12/14/14
to turn-server-project...@googlegroups.com
Hi All,

After I followed CIS CentOS Benchmark to harden my server.


I found a problem in netstat, turnserver recv-Q keep increasing, 1s maybe increase 2 message, and turnserver didn't process it, but seems it didn't affect it's functionality. Anyone can suggest me how to debug / find out what's the problem?



# netstat -anp | grep 6379
tcp        0      0 127.0.0.1:6379              0.0.0.0:*                   LISTEN      6049/redis-server 1
tcp        0      0 127.0.0.1:6379              127.0.0.1:36793             ESTABLISHED 6049/redis-server 1
tcp   413324      0 127.0.0.1:36794             127.0.0.1:6379              ESTABLISHED 6214/turnserver
tcp        0      0 127.0.0.1:36821             127.0.0.1:6379              ESTABLISHED 7045/node      
tcp        0      0 127.0.0.1:6379              127.0.0.1:36821             ESTABLISHED 6049/redis-server 1
tcp        0      0 127.0.0.1:6379              127.0.0.1:36800             ESTABLISHED 6049/redis-server 1
tcp   413442      0 127.0.0.1:36797             127.0.0.1:6379              ESTABLISHED 6214/turnserver
tcp   413486      0 127.0.0.1:36796             127.0.0.1:6379              ESTABLISHED 6214/turnserver
tcp   413383      0 127.0.0.1:36795             127.0.0.1:6379              ESTABLISHED 6214/turnserver
tcp        0      0 127.0.0.1:6379              127.0.0.1:36795             ESTABLISHED 6049/redis-server 1
tcp        0      0 127.0.0.1:6379              127.0.0.1:36798             ESTABLISHED 6049/redis-server 1
tcp        0      0 127.0.0.1:6379              127.0.0.1:36794             ESTABLISHED 6049/redis-server 1
tcp   413478      0 127.0.0.1:36798             127.0.0.1:6379              ESTABLISHED 6214/turnserver
tcp   412960      0 127.0.0.1:36800             127.0.0.1:6379              ESTABLISHED 6214/turnserver
tcp        0      0 127.0.0.1:6379              127.0.0.1:36797             ESTABLISHED 6049/redis-server 1
tcp        0      0 127.0.0.1:6379              127.0.0.1:36796             ESTABLISHED 6049/redis-server 1
tcp        0      0 127.0.0.1:36793             127.0.0.1:6379              ESTABLISHED 6214/turnserver

Thanks in advance.
Kaixin

Oleg Moskalenko

unread,
Dec 14, 2014, 10:42:55 PM12/14/14
to kaixin toucai, turn-server-project...@googlegroups.com
Good catch. That's a bug in our Redis library code.

I'll fix it.

Thanks
Oleg


--
You received this message because you are subscribed to the Google Groups "TURN Server (Open-Source project)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turn-server-project-rfc57...@googlegroups.com.
To post to this group, send email to turn-server-project...@googlegroups.com.
Visit this group at http://groups.google.com/group/turn-server-project-rfc5766-turn-server.
For more options, visit https://groups.google.com/d/optout.

Oleg Moskalenko

unread,
Dec 14, 2014, 11:26:17 PM12/14/14
to kaixin toucai, turn-server-project...@googlegroups.com
I fixed the problem in both project's SVN. If this is an urgent problem then you can take it directly from SVN. If not, then wait for the next official release.

Oleg

Oleg Moskalenko

unread,
Dec 15, 2014, 1:32:41 AM12/15/14
to turn-server-project...@googlegroups.com, kaixin...@gmail.com
It is fixed in Coturn-4.3.2.2.

rfc5766-turn-server official release with the fix will be issued later.

Oleg
To unsubscribe from this group and stop receiving emails from it, send an email to turn-server-project-rfc5766-turn-server+unsubscribe@googlegroups.com.
To post to this group, send email to turn-server-project-rfc5766-turn-...@googlegroups.com.

kaixin toucai

unread,
Dec 15, 2014, 2:05:11 AM12/15/14
to turn-server-project...@googlegroups.com, kaixin...@gmail.com
Thank you very much for the fast fix! However the download path for v4.3.2.2 still show file name as 4.3.2.1 for CentOS 6.6, forget to upgrade version number, or it's still a old version?

Kaixin
Reply all
Reply to author
Forward
0 new messages