Code

increase connection timeout to 5 seconds
authorMax Kellermann <max@duempel.org>
Tue, 23 Aug 2011 16:08:51 +0000 (18:08 +0200)
committerMax Kellermann <max@duempel.org>
Tue, 23 Aug 2011 16:08:51 +0000 (18:08 +0200)
1.5 seconds was not long enough for some MPD operations.  The
disadvantage is that the user may have to wait up to 5 seconds without
screen updates, because ncmpc doesn't do full asynchronous I/O yet.

NEWS
src/main.c

diff --git a/NEWS b/NEWS
index 939688cea8336c9faa5f8b172a35361083d02f9e..3283c414fd000f1e823008dfe4017d047c606be8 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
 ncmpc 0.20 - not yet released
+* increase connection timeout to 5 seconds
 
 
 ncmpc 0.19 - (07/23/2011)
index 15663df0c9db14facfde74ddd2771319c26ce59e..0b80f04712e65ec2c86fde90a3040389f99e6283 100644 (file)
@@ -318,7 +318,7 @@ timer_reconnect(G_GNUC_UNUSED gpointer data)
        mpdclient_disconnect(mpd);
        success = mpdclient_connect(mpd,
                                    options.host, options.port,
-                                   1500,
+                                   5000,
                                    options.password);
        if (!success) {
                /* try again in 5 seconds */