[grits] Add timeout for http servers



commit 5d4daa2b86d30c77c9828447ca1828a45713b5d6
Author: Andy Spencer <andy753421 gmail com>
Date:   Wed Aug 24 15:42:25 2011 +0000

    Add timeout for http servers
    
    Keep it low for now because a hung sever blocks tile loading

 src/data/grits-http.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/data/grits-http.c b/src/data/grits-http.c
index 8f4cfe4..6075398 100644
--- a/src/data/grits-http.c
+++ b/src/data/grits-http.c
@@ -54,6 +54,7 @@ GritsHttp *grits_http_new(const gchar *prefix)
 	http->soup = soup_session_sync_new();
 	http->prefix = g_strdup(prefix);
 	g_object_set(http->soup, "user-agent", PACKAGE_STRING, NULL);
+	g_object_set(http->soup, "timeout",    10,             NULL);
 	return http;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]