[gvfs] http: Set use-thread-context property on async SoupSession



commit e0f03f9cd91a8f074cb905c8be8c3f5eabb2ff7c
Author: Tomas Bzatek <tbzatek redhat com>
Date:   Tue Dec 18 14:07:35 2012 +0100

    http: Set use-thread-context property on async SoupSession
    
    Apparently SoupRequester needs this to be set TRUE.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=687757

 daemon/gvfsbackendhttp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gvfsbackendhttp.c b/daemon/gvfsbackendhttp.c
index 377d4f3..8cd9f56 100644
--- a/daemon/gvfsbackendhttp.c
+++ b/daemon/gvfsbackendhttp.c
@@ -95,6 +95,8 @@ g_vfs_backend_http_init (GVfsBackendHttp *backend)
   backend->session_async = soup_session_async_new_with_options ("user-agent",
                                                                 "gvfs/" VERSION,
                                                                 NULL);
+  /* SoupRequester seems to depend on use-thread-context */
+  g_object_set (G_OBJECT (backend->session_async), "use-thread-context", TRUE, NULL);
 
   /* Proxy handling */
   proxy_resolver = g_object_new (SOUP_TYPE_PROXY_RESOLVER_GNOME, NULL);



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