[geany/geany-plugins] 1e234a: Set a timeout of ten seconds instead of waiting for the default timeout
Enrico Tröger
git-noreply at xxxxx
Sun Oct 19 14:56:11 UTC 2014
Branch: refs/heads/master
Author: Enrico Tröger <enrico.troeger at uvena.de>
Committer: Enrico Tröger <enrico.troeger at uvena.de>
Date: Sun, 19 Oct 2014 14:56:11 UTC
Commit: 1e234a4f770061d37b97880729857ca4d7af4c4b
https://github.com/geany/geany-plugins/commit/1e234a4f770061d37b97880729857ca4d7af4c4b
Log Message:
-----------
Set a timeout of ten seconds instead of waiting for the default timeout
Ten seconds should be enough for this simple request. The default timeout
is OS-depent and might be much higher so better set a reasonable
value.
Modified Paths:
--------------
updatechecker/src/updatechecker.c
Modified: updatechecker/src/updatechecker.c
6 lines changed, 4 insertions(+), 2 deletions(-)
===================================================================
@@ -84,8 +84,10 @@ static void update_check(gint type)
GEANY_VERSION, NULL);
g_message("Checking for updates (querying URL \"%s\")", UPDATE_CHECK_URL);
- soup = soup_session_async_new_with_options(SOUP_SESSION_USER_AGENT,
- user_agent, NULL);
+ soup = soup_session_async_new_with_options(
+ SOUP_SESSION_USER_AGENT, user_agent,
+ SOUP_SESSION_TIMEOUT, 10,
+ NULL);
g_free(user_agent);
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Plugins-Commits
mailing list