summaryrefslogtreecommitdiff
path: root/libpiano/src
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@gmail.com>2008-07-22 16:22:33 +0200
committerLars-Dominik Braun <PromyLOPh@gmail.com>2008-07-22 16:22:33 +0200
commit5d504c7f88d35efe8e5c8e8236de1c0e171d6558 (patch)
tree145d2d05031ed4144e6ae6c11eaceced16d7f586 /libpiano/src
parent4bf107fe85bd6022a191cc9c3f8bfe182214fc73 (diff)
downloadpianobar-windows-5d504c7f88d35efe8e5c8e8236de1c0e171d6558.tar.gz
pianobar-windows-5d504c7f88d35efe8e5c8e8236de1c0e171d6558.tar.bz2
pianobar-windows-5d504c7f88d35efe8e5c8e8236de1c0e171d6558.zip
piano: Make app more responsive by adding a general network timeout
60 seconds should be enough to transfer a few bytes of xml data
Diffstat (limited to 'libpiano/src')
-rw-r--r--libpiano/src/main.c1
1 files changed, 1 insertions, 0 deletions
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