From 5d504c7f88d35efe8e5c8e8236de1c0e171d6558 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 22 Jul 2008 16:22:33 +0200 Subject: piano: Make app more responsive by adding a general network timeout 60 seconds should be enough to transfer a few bytes of xml data --- libpiano/src/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libpiano') diff --git a/libpiano/src/main.c b/libpiano/src/main.c index a4beefd..0a909b8 100644 --- a/libpiano/src/main.c +++ b/libpiano/src/main.c @@ -74,6 +74,7 @@ void PianoInit (PianoHandle_t *ph) { snprintf (ph->routeId, sizeof (ph->routeId), "%07liP", time (NULL)>>8); curl_easy_setopt (ph->curlHandle, CURLOPT_USERAGENT, PACKAGE_STRING); curl_easy_setopt (ph->curlHandle, CURLOPT_CONNECTTIMEOUT, 60); + curl_easy_setopt (ph->curlHandle, CURLOPT_TIMEOUT, 60); } /* free complete search result -- cgit v1.2.3