From f0bab69d9d09fb0a80091d813cc57a85fc3d8c61 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 23 Jun 2008 17:05:45 +0200 Subject: Set curl timeout to 60 seconds. --- libpiano/src/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libpiano/src') diff --git a/libpiano/src/main.c b/libpiano/src/main.c index 14ff4c6..aaaacf9 100644 --- a/libpiano/src/main.c +++ b/libpiano/src/main.c @@ -62,6 +62,7 @@ void PianoInit (PianoHandle_t *ph) { /* FIXME: 64-bit may make this hack useless */ 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); } /* free complete search result -- cgit v1.2.3