aboutsummaryrefslogtreecommitdiff
path: root/src/update_check.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-02-19 02:26:53 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-02-19 02:26:53 +0000
commit34df494fffa1db3819cda3c4c717c99ee84cc8e7 (patch)
tree35298c91b3c91d5c361c7c940e2307e2fa0824a2 /src/update_check.c
parentdc384dc1e664c4cfadf39700ddf913c12398a01e (diff)
made curl timeout 10 secs.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2491 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/update_check.c')
-rw-r--r--src/update_check.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/update_check.c b/src/update_check.c
index 3214c502..40c7ebe6 100644
--- a/src/update_check.c
+++ b/src/update_check.c
@@ -236,7 +236,7 @@ static void update_check_cb(GPid pid, gint status, gpointer data)
void update_check(gboolean show_dialog_always)
{
- gchar *cmdline[6] = {"curl", "--silent"};
+ gchar *cmdline[8] = {"curl", "--silent", "--max-time", "10"};
GPid pid;
GError *error = NULL;
@@ -249,14 +249,14 @@ void update_check(gboolean show_dialog_always)
debug_print("update_check: getting latest version from http://sylpheed.sraoss.jp/version.txt\n");
- cmdline[2] = "http://sylpheed.sraoss.jp/version.txt?";
+ cmdline[4] = "http://sylpheed.sraoss.jp/version.txt?";
if (prefs_common.use_http_proxy && prefs_common.http_proxy_host &&
prefs_common.http_proxy_host[0] != '\0') {
- cmdline[3] = "--proxy";
- cmdline[4] = prefs_common.http_proxy_host;
- cmdline[5] = NULL;
+ cmdline[5] = "--proxy";
+ cmdline[6] = prefs_common.http_proxy_host;
+ cmdline[7] = NULL;
} else
- cmdline[3] = NULL;
+ cmdline[5] = NULL;
if (g_spawn_async_with_pipes
(NULL, cmdline, NULL,