You are not logged in.

#1 2013-10-13 10:16:09

Asmir
Member
From: BiH
Registered: 2011-10-06
Posts: 67

[SOLVED] MPD clients slow connecting

I've noticed an slow response by first time client->server connecting on my fresh Arch installation.

akill@arx ~ % time mpc                                                                                                             
System ot a Down - Aerials                                                                                                         
[playing] #2/2   0:36/3:55 (15%)                                                                                                   
volume: 61%   repeat: off   random: off   single: on    consume: off                                                               
mpc  0.00s user 0.00s system 0% cpu 5.145 total 

Like you see simple mpc call needs 5 seconds, same for ncmpcpp. This only applies when client is starting, so after the client connects it works normal like play, pause, switch song...
There are no log errors, my /etc/mpd.conf is the same one from my netbook and there it works fine.
Thanks in advance.

Last edited by Asmir (2013-10-14 09:04:53)

Offline

#2 2013-10-14 09:03:46

Asmir
Member
From: BiH
Registered: 2011-10-06
Posts: 67

Re: [SOLVED] MPD clients slow connecting

Partionaly solved by switching to Unix sockets, now clients connect to /var/run/mpd/socket.

Offline

#3 2013-10-22 12:05:46

justin-8
Member
From: Queensland, Australia
Registered: 2013-06-18
Posts: 53

Re: [SOLVED] MPD clients slow connecting

Possibly not related (but maybe helpful if someone stumbles upon this in the future); but mine started to take ~30 seconds to connect as well. Turned out that having ip6tables set to drop all connections resulted in it waiting for connection on ::1 to timeout before attempting ipv4.

Offline

Board footer

Powered by FluxBB