diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-02-19 02:26:53 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-02-19 02:26:53 +0000 |
commit | 34df494fffa1db3819cda3c4c717c99ee84cc8e7 (patch) | |
tree | 35298c91b3c91d5c361c7c940e2307e2fa0824a2 | |
parent | dc384dc1e664c4cfadf39700ddf913c12398a01e (diff) |
made curl timeout 10 secs.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2491 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/update_check.c | 12 |
2 files changed, 10 insertions, 6 deletions
@@ -1,5 +1,9 @@ 2010-02-19 + * src/update_check.c: set curl timeout to 10 secs. + +2010-02-19 + * src/prefs_actions.c: removed compilation warning. 2010-02-16 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, |