From: Max Kellermann Date: Tue, 23 Aug 2011 16:08:51 +0000 (+0200) Subject: increase connection timeout to 5 seconds X-Git-Tag: release-0.20~98 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7a68a751fecbc9c5b1060e1609fcc3a523cbe3bb;p=ncmpc.git increase connection timeout to 5 seconds 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. --- diff --git a/NEWS b/NEWS index 939688c..3283c41 100644 --- 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) diff --git a/src/main.c b/src/main.c index 15663df..0b80f04 100644 --- a/src/main.c +++ b/src/main.c @@ -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 */