From 7a68a751fecbc9c5b1060e1609fcc3a523cbe3bb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 23 Aug 2011 18:08:51 +0200 Subject: [PATCH] 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. --- NEWS | 1 + src/main.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 */ -- 2.30.2